1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-26 08:55:25 +02:00
tldr/pages/common/hostname.md

21 lines
351 B
Markdown
Raw Normal View History

2015-12-15 18:57:07 +02:00
# hostname
> Show or set the system's host name.
> More information: <https://manned.org/hostname>.
2015-12-15 18:57:07 +02:00
- Show current host name:
2015-12-15 18:57:07 +02:00
`hostname`
- Show the network address of the host name:
2015-12-15 18:57:07 +02:00
2025-07-03 13:10:37 +03:00
`hostname {{[-i|--ip-address]}}`
2015-12-15 18:57:07 +02:00
- Show the FQDN (Fully Qualified Domain Name):
2015-12-15 18:57:07 +02:00
`hostname {{[-f|--fqdn]}}`
2015-12-15 18:57:07 +02:00
- Set current host name:
2015-12-15 18:57:07 +02:00
`hostname {{new_hostname}}`