2025-03-14 21:59:59 -06:00
|
|
|
# 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:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`hostname {{[-i|--ip-address]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Show the FQDN (Fully Qualified Domain Name):
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`hostname {{[-f|--fqdn]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Set current host name:
|
|
|
|
|
|
|
|
|
|
`hostname {{new_hostname}}`
|