System Grab Bag

View all TLDR pages from common (or from all pages)

hostname

Show or set the system's host name. More information: https://manned.org/hostname.
  • Show current host name:
    hostname
  • Show the network address of the host name:
    hostname -i
  • Show all network addresses of the host:
    hostname -I
  • Show the FQDN (Fully Qualified Domain Name):
    hostname --fqdn
  • Set current host name:
    hostname {{new_hostname}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.