This directory of Linux commands is from Linux in a Nutshell, 5th Edition .
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
Buy it now , or read it online on Safari Bookshelf.
hostname
hostname [option ] [nameofhost ]
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 .
Linux Online
The Linux FAQ
linux.java.net
Linux Kernel Archives
Kernel Traffic
DistroWatch.com
Sponsored by: