world leader in high performance signal processing
Trace: » hostname
Table of Contents


hostname is the program that is used to either set or display the current host, domain or node name of the system. These names are used by many of the networking programs to identify the machine. When called without any arguments, the program displays the name of the system as returned by the gethostname(2) function.


root:~> hostname
root:~> hostname -h
hostname: illegal option -- h
BusyBox v1.00 (2006.04.21-19:01+0000) multi-call binary

Usage: hostname [OPTION] {hostname | -F FILE}

Get or set the hostname or DNS domain name. If a hostname is given
(or FILE with the -F parameter), the host name will be set.

        -s      Short
        -i      Addresses for the hostname
        -d      DNS domain name
        -f      Fully qualified domain name
        -F FILE Use the contents of FILE to specify the hostname
root:~> hostname foo_bar
root:~> hostname

More information