2025-03-14 21:59:59 -06:00
|
|
|
# hostname
|
|
|
|
|
|
|
|
|
|
> Show or set the system's host name.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://www.gnu.org/software/inetutils/manual/inetutils.html#hostname-invocation>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|