which .profile is used

Chris Kassopulo ckasso
Mon May 17 11:39:18 PDT 2004


It's getting simpler.
 
files that don't exist are ignored
 
login shell (SHLVL=1):
  /etc/profile and
  $HOME/.bash_profile or
  $HOME/.bash_login or
  $HOME/.profile
 
non-login shell (SHLVL>=2):
  $HOME/.bashrc
  
logout:
  $HOME/.bash_logout
 
Chris Kassopulo


More information about the Linux-users mailing list