0
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?

【Linux基本設定】サーバーのコンソールの背景色を変更する

Last updated at Posted at 2025-04-27

目的

検証環境と本番環境でコンソールの背景色を変えることで事故を防ぎたい

Linux設定変更

全ユーザーに適用する(AmazonLinux)

AmazonLinuxはbashrcを.bash_profileに読み込ませるので
実はbashrcを書き換えないと共通設定にならない

vim /etc/bashrc
setterm -background red -foreground white -clear

image.png
↑成功

また、ログインした先の別のユーザーでも赤色で表示されることも確認できた

0
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
0
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?