hostname

Linux · Network · available in the simulator

What it does

Display or set the system's host name.

Options and parameters

  • -i

    Display the IP address of the host.

  • -I

    Display all network addresses of the host.

  • -f

    Display the fully qualified domain name (FQDN).

Usage examples

  • hostname
  • hostname -i
  • hostname -I
Practise hostname

Related commands