728x90 AdSpace

Sunday, 16 July 2017

Set or display host name - hostname Linux Command

hostname

hostname [option] [nameofhost]

Description

Set or display name of current host system. A privileged user can set the hostname with the nameofhost argument.


Options

-a, --alias
Display the alias name of the host (if used).

-d, --domain
Display DNS domain name.

-f, --fqdn, --long
Display fully qualified domain name.

-F file, --file file
Consult file for hostname.

-h, --help
Display a help message and then exit.

-i, --ip-address
Display the IP address(es) of the host.

-n, --node
Display or set the DECnet node name.

-s, --short
Trim domain information from the display output.

-v, --verbose
Verbose mode.

-V, --version
Display version information and then exit.

-y, --yp, --nis
Display the NIS domain name. A privileged user can set a new NIS domain name with nameofhost.
Annamalai Thangaraj

Annamalai is working as Technical Lead in Leading Telecom company with 5+ years experience in Identity and Access Management , Telecom and Networks, BigData, Java, Spring, Struts, Hibernate, AngularJS, and Enterprise Web Application Development.

Website: Java Tutorials Corner

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: Set or display host name - hostname Linux Command Rating: 5 Reviewed By: Annamalai Thangaraj