User initialization scripts
Systemwide settings scripts
In the /etc/ folder, the following files are related to the user level initialization:
• /etc/profile : Few distributions will have additional folder /etc/
profile.d/ . All the scripts from the profile.d folder will be executed.
• /etc/bash.bashrc
User level settings – default files
Scripts in the /etc/ folder will be called for all the users. Particular user-specific
initialization scripts are located in the HOME folder of each user. These are as follows:
• $HOME/.bash_profile : This contains user-specific bash environment default
settings. This script is called during the login process.
• $HOME/.bash_login : This contains the second user environment
initialization script called during login process.
• $HOME/.profile : If present, this script internally calls the .bashrc script file.
• $HOME/.bashrc : This is an interactive shell or terminal initialization script.
In the /etc/ folder, the following files are related to the user level initialization:
• /etc/profile : Few distributions will have additional folder /etc/
profile.d/ . All the scripts from the profile.d folder will be executed.
• /etc/bash.bashrc
User level settings – default files
Scripts in the /etc/ folder will be called for all the users. Particular user-specific
initialization scripts are located in the HOME folder of each user. These are as follows:
• $HOME/.bash_profile : This contains user-specific bash environment default
settings. This script is called during the login process.
• $HOME/.bash_login : This contains the second user environment
initialization script called during login process.
• $HOME/.profile : If present, this script internally calls the .bashrc script file.
• $HOME/.bashrc : This is an interactive shell or terminal initialization script.
Comments
Post a Comment