1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages/linux/hostname.md
2021-09-02 20:33:49 +02:00

381 B

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}}