hostname Command Examples

Show or set the system's host name. More information: https://manned.org/hostname.

hostname

hostname -i

hostname -I

hostname --fqdn

hostname {{new_hostname}}