La commande hostname
permet d'afficher le hostname actuel de vôtre machine Linux, ou de le modifier.
(output de la commande tldr hostname
)
hostname
: Show current host name.
hostname {{new_hostname}}
: Set current host name.
hostname -i
: Show the network address of the host name.
hostname -I
: Show all network addresses of the host.
hostname --fqdn
: Show the FQDN (Fully Qualified Domain Name).
man hostname