タグ

Ubuntuとbashに関するhedachiのブックマーク (1)

  • Ubuntuの環境変数 - kiyoeri Nucleus

    一般に、bashの環境変数は、次のようなシーケンスで取得される。 /etc/profile ⇒ ~/.bash_profile ⇒ ~/.bash_login ⇒ ~/.profile ⇒ ~/.bashrc  ⇒ ~/.bash_logout ユーザーがログインすると、まず/etc/profileを読み込み、次に~/.bash_profileを読み込みむ。 ~/.bash_profileが存在しない場合は、~/.bash_loginを読み込む。 ~/.bash_loginもない場合は~/.profileを読み込む。 ~/.bash_logoutは、ログアウト時に読み込まれるファイル。 .bashrcは、プロセスとしてbashを起動したときに読み込まれる。つまり、いったんログインした後でも、

  • 1