tldr/pages/linux/hostname.md

24 lines
324 B
Markdown
Raw Normal View History

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