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:
4026
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 shell program to find the gcd for the 2 given numbers
Shell script to display the name of those files (in the given directory) which are having multiple links
Write a shell script that takes a file names as a argument and deletes this file from every directory above the present working directory.
Script to make File and Directory Management Operations menu based : Display Current directory, List Directory, Make Directory, Change Directory etc
Write a shell scripts that finds total no. of users and finds out how many of them are currently logged in.
Script to find the value of one number raised to the power of another
Navigation command in unix
Write a shell script to convert a file to lower case or upper case as specified by user.
Write a shell program to convert all the contents into the uppercase in a particular file
Write a shell script to find the largest among the 3 given numbers
Shell Script to create a Menu Driven program : Hard Link, Soft Link, Counting each of the links for a specific link and Display the soft-links
Write a shell script, which will receive any number of filenames as arguments .The shell script should check whether such files already exist.
Shell Script to display the exit status using grep command which search a string from a string
Calculate the gross salary
Redirection in unix
Explain the command, which work as spelling checker?
Different types of Error in unix
Write a shell program to find the position of substring in given string
Display information about computer system - uname
Give example of cut command?
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