hostnamectl do?query and change the system hostname and related metadata.
▸ Explain your own hostnamectl command →$ hostnamectl status
$ hostnamectl set-hostname web01
| --static | operate on the static (persistent) hostname |
| --pretty | operate on the pretty (free-form) hostname |
| --transient | operate on the transient (runtime) hostname |
| --no-ask-password | do not prompt for authentication |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.