Linux Command Directory
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.
hostname [option] [nameofhost]
Set or display name of current host system. A privileged user can set the hostname with the nameofhost argument.
Display the alias name of the host (if used).
Display DNS domain name.
Display fully qualified domain name.
Consult file for hostname.
Display a help message and then exit.
Display the IP address(es) of the host.
Display or set the DECnet node name.
Trim domain information from the display output.
Display version information and then exit.
Display the NIS domain name. A privileged user can set a new NIS domain name with nameofhost.