|
/etc/profile
/etc/profile.d
/etc/bashrc
The Script Execution process
# /etc/profile
This is the file executed every time a user logs into the system. This will help to setup the system wide environment variable and startup programs for user like
Setting up MAIL & HISTSIZE
Here whatever is added or removed, it affects all users in the OS.
# /etc/profile.d
It contains the initialization scripts specific to the software packages installed by RPM.
# /etc/bashrc
This script is used for System-wide function and aliases. Here whatever is added or removed, it affects all users in the OS.
`
# /etc/skel
The file which is created under this path, will be available when create a new user like .bashrc &.bash_profile
Create a file called dateofbrith to input all employees date of birth.
# useradd <User Name>
Login as user and check the file
~/.bashrc
~/.bash_profile
~/.bashrc
This is the file every user has the control to edit and customize User’s aliases & Functions
~/.bash_profile
This is the file every user has the control to edit and customize User Environment settings
|