1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 05:55:28 +02:00
tldr/pages/common/hostname.md
2025-07-03 13:10:37 +03:00

20 lines
351 B
Markdown

# 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|--ip-address]}}`
- Show the FQDN (Fully Qualified Domain Name):
`hostname {{[-f|--fqdn]}}`
- Set current host name:
`hostname {{new_hostname}}`