Saturday, December 13, 2008

Login Scripts

Behind
the scenes, when you login, the following shell scripts are executed.
They are used to set environment variables and system settings.

/etc/profile

  • This is the first script that is executed.
  • This script is used to set global parameters that are common to all users.

/home/.profile

  • This is the next script that is normally executed.
  • Most likely the contents of this file will be the same for all users.
  • It can be changed to set unique parameters for each user.

/home/.bashrc

  • This is the next script that is run and/or each time you start a new shell.

No comments:

Post a Comment