HOSTNAMECTL(1) hostnamectl HOSTNAMECTL(1) (NAME) hostnamectl - (SYNOPSIS) hostnamectl [OPTIONS...] {COMMAND} (DESCRIPTION) hostnamectl . systemd-hostnamed.service(8) : ("pretty") ( "Lennart's Laptop") ("static") ( "lennarts-laptop") ("transient") ( "node12345678"). . pretty static transient ( ). ( ) systemd-firstboot(1) . (COMMANDS) : status . . . hostname [NAME] . NAME NAME . pretty static transient --static --transient --pretty . pretty static transient . . pretty static . transient static pretty . static transient DNS ( ASCII DNS) FQDN DNS . (DNS ). "?" machine-id(5) . : "foobar-????-????" "foobar-92a9-061c" . . icon-name [NAME] . NAME NAME . . Icon Naming Specification[1] . . chassis [TYPE] (chassis) . TYPE TYPE . . : "desktop" ( ) "laptop" () "convertible" () "server" () "tablet" () "handset" ( ) "watch" ( ) "embedded" () "vm" ( ) "container" () . . deployment [ENVIRONMENT] . ENVIRONMENT ENVIRONMENT . ENVIRONMENT . : "development" () "integration" () "staging" () "production" (). . location [LOCATION] . LOCATION LOCATION . LOCATION . "Berlin, Germany" "Left Rack, 2nd Shelf" . . tags [TAG...] . TAG . . . . . - ASCII "-" "." . TAGS= /etc/machine-info machine-info(5) . ConditionMachineTag=/AssertMachineTag= systemd.unit(5) . . (OPTIONS) : --static, --transient, --pretty status ( ) hostnamectl . hostname . . . -H, --host= . "@" . ssh ":" "/" . SSH . machinectl -H HOST . IPv6 . -M, --machine= . "@" . ".host" ( : "--user --machine=lennart@.host"). "@" root . "@" ( ) ".host" . --no-ask-password ( ) . -h, --help . --version . --json=MODE JSON . : "short" ( ) "pretty" ( ) "off" ( JSON ). -j --json=pretty --json=short . (EXIT STATUS) 0 . (SEE ALSO) systemd(1), hostname(1), hostname(5), machine-info(5), systemctl(1), systemd-hostnamed.service(8), systemd-firstboot(1) (NOTES) 1. Icon Naming Specification https://specifications.freedesktop.org/icon-naming/latest systemd 261.2 HOSTNAMECTL(1)