1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

初心者向け ターミナルに表示されるホスト名を変更する方法

Posted at

概要

  • ターミナルを表示した時、左側にやたらと長く、かつダサい名前が表示されると思います。
  • これを変更することでスッキリし、かつカッコ良い表示にします。

スクリーンショット 2001-01-01 9.42.00.png

手順

  • マックのアイコンから、「システム環境設定」を選択。

スクリーンショット 2001-01-01 9.42.39.png

  • 「共有」を選択。

スクリーンショット 2001-01-01 9.43.00.png

  • 編集を選択。

スクリーンショット 2001-01-01 10.15.44.png

  • こちらをお好みの名前に変更し、OKを選択します。

スクリーンショット 2001-01-01 10.16.00.png

  • 「共有」の画面で赤マルの部分が変更され、これがホスト名として表示されます。

  • スクリーンショット 2001-01-01 10.15.44のコピー.png

  • 変更したら、そのまま「共有」を閉じます。

  • また、ターミナルも閉じます。

スクリーンショット 2001-01-01 9.44.36.png

  • 再度、ターミナルを起動します。

スクリーンショット 2001-01-01 9.45.12.png

  • これでターミナルに表示されるホスト名が変更されました。

まとめ

  • 手順としては、非常に簡単なので、さっと変更することをおすすめします。
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?