hostnamectl [command]Arguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
hostnamectlDisplays hostname and operating system metadata.
sudo hostnamectl set-hostname server1Sets the system's static hostname.
| Field | Details |
|---|---|
| Command | hostnamectl |
| Category | Services and System Control |
| Primary use | Views and changes system hostname metadata. |
| Syntax | hostnamectl [command] |