linux:hostnamectl
差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| linux:hostnamectl [2022/08/16 15:13] – 作成 kimi | linux:hostnamectl [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== Control the system hostname ====== | + | ====== Tips for Linux System ====== |
| + | ===== Control the system hostname ===== | ||
| + | システムのホスト名や関連する設定を照会・変更できるhostnamectlというコマンドがある。(Ubuntu 22.04.1 LTSで確認) | ||
| + | <code sh> | ||
| + | $ hostnamectl | ||
| + | | ||
| + | Icon name: computer-laptop | ||
| + | | ||
| + | Machine ID: 0435c0d2684641d491ef7a8c69295556 | ||
| + | Boot ID: f964fbe42b7a4e429f37c304c53674a7 | ||
| + | Operating System: Ubuntu 22.04.1 LTS | ||
| + | Kernel: Linux 5.15.0-46-generic | ||
| + | Architecture: | ||
| + | | ||
| + | Hardware Model: GF63 Thin 10SCXR | ||
| + | $ | ||
| + | </ | ||
| + | ホスト名を変更するには、 | ||
| + | <code sh> | ||
| + | $ hostnamectl hostname ssty | ||
| + | $ hostnamectl | ||
| + | | ||
| + | Icon name: computer-laptop | ||
| + | | ||
| + | Machine ID: 0435c0d2684641d491ef7a8c69295556 | ||
| + | Boot ID: f964fbe42b7a4e429f37c304c53674a7 | ||
| + | Operating System: Ubuntu 22.04.1 LTS | ||
| + | Kernel: Linux 5.15.0-46-generic | ||
| + | Architecture: | ||
| + | | ||
| + | Hardware Model: GF63 Thin 10SCXR | ||
| + | $ | ||
| + | </ | ||
linux/hostnamectl.1660630403.txt.gz · 最終更新: (外部編集)