Product SiteDocumentation Site

3.2. Configuring Host Names Using hostnamectl

The hostnamectl tool is provided for administering the three separate classes of host names in use on a given system.

3.2.1. View All the Host Names

To view all the current host names, enter the following command:
~]$ hostnamectl status
The status option is implied by default if no option is given.