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:
3803
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:
Write a menu driven program to display message, user name, terminal name, login date and time
How to find out common lines between two files?
Calculate 9/5
How to create a directory and remove a directory?
Program to calculate the factorial of a number
Shell script to print first 5 odd numbers
Write a menu driven shell script for Copy a file, Remove a file, Move a file
Shell script to measure size of a file
Tar is used to archive file - tar
Concatenate, copy, print files - cat
Display file in column format
Shell Script to check file is ordinary or not
How delete directory with files?
Find all lines in a file with words longer than 4 characters, assuming that words are separated by spaces except at the beginning or end of line
Execute the command which display login name, the name of your terminal and date and time of since user logged in
Copy file and directory subtrees - cp
Combine two files to a single file
Different types of Error in unix
Count no.of words in file abc?
Shell script that prints names of all sub-directories present in the current directory
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