hostname:tldr:b2802
hostname: Show the FQDN (Fully Qualified Domain Name).
$ hostname --fqdn
try on your machine
The hostname --fqdn
command is used to display the fully qualified domain name (FQDN) of the system.
The FQDN represents the complete domain name of the host, including the hostname and the domain name. It helps identify the exact location of a system within the hierarchical structure of the Domain Name System (DNS).
When you execute hostname --fqdn
, the command retrieves the hostname and the domain name configured on the system, and provides the complete FQDN as the output.
For example, if the hostname is "myhost" and the domain name is "example.com", running hostname --fqdn
would return "myhost.example.com".
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.