LoginSignup
2
0

More than 5 years have passed since last update.

Linuxの本番サーバでコマンドプロンプトを赤文字にするハック

Posted at

用途

  • 本番サーバでの作業はクリティカルなのだけど、本番サーバと他のサーバでプロンプトが同じだと判別しづらいので、プロンプトの色を赤にするハック。

追記

vim ~/.bashrc

export PS1='[\[\033[31m\]\u@\h \W\[\033[00m\]]$ '
2
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
2
0