SST Lab Dokuwiki Header header picture

ユーザ用ツール

サイト用ツール


linux:hostnamectl

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
linux:hostnamectl [2022/08/16 15:13] kimilinux:hostnamectl [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1
行 1: 行 1:
 +====== Tips for Linux System ======
 ===== Control the system hostname ===== ===== Control the system hostname =====
 +システムのホスト名や関連する設定を照会・変更できるhostnamectlというコマンドがある。(Ubuntu 22.04.1 LTSで確認)
 +<code sh>
 +$ hostnamectl
 + Static hostname: sstx
 +       Icon name: computer-laptop
 +         Chassis: laptop
 +      Machine ID: 0435c0d2684641d491ef7a8c69295556
 +         Boot ID: f964fbe42b7a4e429f37c304c53674a7
 +Operating System: Ubuntu 22.04.1 LTS                
 +          Kernel: Linux 5.15.0-46-generic
 +    Architecture: x86-64
 + Hardware Vendor: Micro-Star International Co., Ltd.
 +  Hardware Model: GF63 Thin 10SCXR
 +$
 +</code> 
 +ホスト名を変更するには、
 +<code sh>
 +$ hostnamectl hostname ssty
 +$ hostnamectl
 + Static hostname: ssty
 +       Icon name: computer-laptop
 +         Chassis: laptop
 +      Machine ID: 0435c0d2684641d491ef7a8c69295556
 +         Boot ID: f964fbe42b7a4e429f37c304c53674a7
 +Operating System: Ubuntu 22.04.1 LTS                
 +          Kernel: Linux 5.15.0-46-generic
 +    Architecture: x86-64
 + Hardware Vendor: Micro-Star International Co., Ltd.
 +  Hardware Model: GF63 Thin 10SCXR
 +$
 +</code> 
  
linux/hostnamectl.1660630414.txt.gz · 最終更新: 2022/08/23 13:34 (外部編集)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki