2011年10月7日金曜日

bashのログインシェル



環境変数の設定の際、忘れていたのでメモ

bashのログインシェルは次の順序で読み込まれる
(CentOS 6.0のbash環境)


  1. /etc/profile

  2. /etc/profile.d/*.sh

  3. $HOME/.bash_profile

  4. $HOME/.bashrc

  5. /etc/bashrc



suやscreenを起動した場合


  1. $HOME/.bashrc

  2. /etc/bashrc

  3. /etc/profile.d/*.sh




同様の記事を見つけた。


bashが起動時に実行するファイル

http://www.itmedia.co.jp/enterprise/articles/0803/10/news012.html




0 件のコメント:

コメントを投稿