hostname
hostname [NAME]
hostnameコマンドは、ホストシステム(自システム)のネットワーク上の名前を表示します。
スーパーユーザの場合は、NAME
にシステムの新しい名前を指定して、名前の変更をすることができます。
引数
- ① NAME
- 新しく設定する名前を指定します。
ホストシステムの名前を表示する
$ hostname
takeda
スーパーユーザでホストシステムの名前を変更する
# hostname host001
# hostname
host001
本コンテンツは「UNIXコマンド辞典 ビギナー編」(2003年)を元にWeb用に再編集したものです
All Contents copyright © 2003-2009 Odyssey Communications Inc., Shoeisha Co., Ltd.
All Contents copyright © 2003-2009 Odyssey Communications Inc., Shoeisha Co., Ltd.
All contents copyright © 2005-2021 Shoeisha Co., Ltd. All rights reserved. ver.1.5