System
hostnamectl
Manage hostname and system information.
Ubuntu
CentOS
Debian
Arch
SUSE
Fedora
Verified: 2026-05-10
Syntax
$hostnamectl [OPTIONS] COMMAND
Examples
$hostnamectl set-hostname my-pc
$hostnamectl status
Typical use cases
?
Standard usage
hostnamectl --help
Note
Systemd-based. For hostname and chassis settings.
Export