🧀 Learn Linux

Advanced · Management Services

hostnamectl: Query or set the host name

Syntax

hostnamectl [set-hostname name]

Examples

hostnamectl

Usage and sandbox support

Manual reference only

Full documentation ↗

Related commands