タグ

Linuxと.bash_profileに関するchess-newsのブックマーク (1)

  • .bash_profileと.bashrcについて - Qiita

    はじめに .bash_profileと.bashrcでユーザ環境のカスタマイズはよくやってますが、 その使い分けについてまじめに確認したことがなかったのでメモをしておきます。 ユーザがLinuxにログインすると、ホームディレクトリにある.bash_profileと .bashrcが実行されるようになっています。 ユーザは、これらの中に環境変数やコマンドのエイリアスの設定を自由に追加できます。 .bash_profileと.bashrcの使い分けについて sshでログインすると、.bash_profile -> bashrcの順に実行されます。 これは.bash_profileのソースの上のあたりを見るとすぐにわかります。 # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc

    .bash_profileと.bashrcについて - Qiita
  • 1