Skip to content

Linux hostname command (hostname)

The hostname command on Linux shows the local machine name. It can also be used to change the machine name if a new name is provided as an argument.

It supports the -—fdqn (Fully Qualified Domain Name) option, which returns the system name plus the domain.

Example:

$ hostname www.certificacionlinux.com