Which profile does bash run at login?

vendredi 7 août 2009

Have you ever wondered which of the multiple files does bash run when you login to a Linux machine?

Remember, there are at least those files that are potentially run:

  • /etc/profile
  • /etc/bash.bashrc
  • /etc/bash_completion
  • .profile
  • .bash_profile
  • .bashrc
  • .bash_completion

Depending if you login interactively (getting a shell) or just running a command,some of these files are sourced.

Lire le reste de cette entrée »