Man Page: hostnamectl

MAN PAGE: hostnamectl

EXECUTIVE SUMMARY
Hostnamectl manages the system name and metadata. Use it to view or change the computer's identity on a network. It is the modern standard for Pop!_OS and Fedora GNU/Linux systems.

BASIC SYNTAX
sudo hostnamectl [OPTIONS] [COMMAND]

TEN COMMON USAGES (MOST USEFUL FIRST)

1.  Show system info:       hostnamectl status
2.  Set permanent name:     sudo hostnamectl set-hostname server-01
3.  Set friendly name:      sudo hostnamectl set-hostname "Mom's Laptop" --pretty
4.  Reset to default:       sudo hostnamectl set-hostname ""
5.  Check static name:      hostnamectl --static
6.  Check transient name:   hostnamectl --transient
7.  Identify environment:   sudo hostnamectl set-deployment production
8.  Identify location:      sudo hostnamectl set-location "Home Office"
9.  Set hardware type:      sudo hostnamectl set-chassis laptop
10. View help menu:         hostnamectl --help

CORE FLAGS TO MEMORIZE

--static     | The permanent name saved in /etc/hostname.
--pretty     | A high-level name that allows spaces and symbols.
--transient  | The temporary name received from the network (DHCP).
-H [USER@]   | Run this command on a remote server via SSH.

Keywords: Pop!_OS, Fedora, Linux, hostnamectl, hostname, systemd, networking, Djere Service Group