1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 21:38:16 +01:00
tldr/pages/linux/hostname.md

24 lines
322 B
Markdown
Raw Normal View History

2015-12-15 17:57:07 +01:00
# hostname
Show or set the system's host name
- 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}}`