Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Unix / Linux / Ubuntu Articles
Submit Article
Home
»
Articles
»
Unix / Linux / Ubuntu
»
Commands
RSS Feeds
Set or display name of current host system - hostname
Posted By:
Dylan Bouchard
Category:
Unix / Linux / Ubuntu
Views:
3819
This article explains about hostname command with an example in unix.
hostname command is used to set or display name of current host system in unix.
Syntax of hostname Command
hostname [- options]
Example of hostname Command
hostname
Share:
Previous Post:
Display information about computer system - uname
Next Post:
Print user and group IDs and names - id
Didn't find what you were looking for? Find more on
Set or display name of current host system - hostname
Or get
search suggestion and latest updates
.
Dylan Bouchard
author of Set or display name of current host system - hostname is from Montreal,
Canada
.
View All Articles
Related Articles and Code:
Program to get and set System Date using Interrupt 21h
Shell script to display all users names, or users names of a particular group, or name of users who are currently working in the system
Shell script that prints names of all sub-directories present in the current directory
Shell script that prints names of all sub-directories present in the current directory
Write a menu driven program to display message, user name, terminal name, login date and time
Program to display progress bar as displayed in windows system
Program to display different type of progress bar as displayed in windows system
Program to display current date and time
Display information about all the current programs running
Display your current working directory
Display 2 items having lowest current stock
Program to get and display the current system time.
TCP/IP program of TELNET protocol to the given host and port
TCP/IP program to connect to a specified TCP service on a specified host
TCP/IP program to connect to a specified UDP service on a specified host
Prolog program to display item name, code, quantity, price and grade
Display information about computer system - uname
Display student records whose name starts with 'm' using like % operator
Display the already mounted file system - mount
Display customers whose name starts with 's'
Other Interesting Articles in Unix / Linux / Ubuntu:
How to compare two files?
Append abc.txt, xyz .txt
Shell Script to make a menu driven calculator using case
Write a shells scripts which will receives a list of filenames,the first of whch would be wordfile
Shell Script to create a pyramid of number
Write a script to find the value of one number raised to the power of another
Add a new group to the system - groupadd
Program to convert and print this distance in meters, feet, inches and centimeters
Print message a shown in description
write a script to delete zero sized files from a given directory (and all its subdirectories)
menu driven shell program which have the options change the term, change the prompt and user list of unix system.
Count no.of lines in file abc?
Shell Script for generating a mark sheet
Write a shell script to find the smallest of three numbers
Shell script that prints names of all sub-directories present in the current directory
System activity reporter - sar
Program to count length of user input string
How to find out difference between two files?
Shell Script to check file is ordinary or not
For joining the line
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Unix / Linux / Ubuntu
View All
Advance
Basics
Commands
Homework Help
Interview FAQ
Terms and Terminology
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint