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:
3944
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:
Append abc.txt, xyz .txt
Changing current directory - cd
Write a shell program to concatenate the contents of 2 files
Explain the command, which work as spelling checker?
Which command display version of the UNIX?
Navigation command in unix
Compress and expand data - compress / uncompress
Write a shell script, which reports names and sizes of all files in a directory whose size is exceeding 1000 bytes
Write a shell script to find the sum, the average and the product of the four integers entered
Write a shell program to count number of words, characters,white spaces and special symbols in a givin text
How delete directory with files?
How would you know name of the users who are login?
Display the already mounted file system - mount
Write a shell program to count number of words, characters, white spaces and special symbols in a given text
Shell script to display the name of those files (in the given directory) which are having multiple links
Program to calculate the gross salary
Shell script to perform operations like display, list, make directory and copy, rename, delete, edit file
How to find out common lines between two files?
Program to count length of user input string
Shell script to print first 5 odd numbers
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