1 min read 24 words Updated Oct 03, 2026 Created Oct 03, 2026
#OS#linux#networking

hostnamectlis util around setting and getting the system hostname and other related things.

Get the hostname: hostnamectl hostname

Set the hostname: hostnamectl set-hostname <name>