hostname <hostname>

Set or print name of current host system

Arguments

NameDescription
hostnameThe hostname to use for this machine

Options

NameDescription
-fInclude domain information in the printed name
-sTrim off any domain information from the printed name
-dOnly print domain information