2015-12-15 18:57:07 +02:00
|
|
|
# hostname
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Show or set the system's host name.
|
2021-09-02 15:33:49 -03:00
|
|
|
> More information: <https://manned.org/hostname>.
|
2015-12-15 18:57:07 +02:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Show current host name:
|
2015-12-15 18:57:07 +02:00
|
|
|
|
|
|
|
`hostname`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Show the network address of the host name:
|
2015-12-15 18:57:07 +02:00
|
|
|
|
2025-03-17 12:11:55 +02:00
|
|
|
`hostname {{[-i|--ip-addresses]}}`
|
2015-12-15 18:57:07 +02:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Show the FQDN (Fully Qualified Domain Name):
|
2015-12-15 18:57:07 +02:00
|
|
|
|
2025-03-17 12:11:55 +02:00
|
|
|
`hostname {{[-f|--fqdn]}}`
|
2015-12-15 18:57:07 +02:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Set current host name:
|
2015-12-15 18:57:07 +02:00
|
|
|
|
|
|
|
`hostname {{new_hostname}}`
|