Http://rimuhosting.com/howto/profile.jsp
Linux Shell environment setup using/etc/profile. d /*
When a user logs in, environment variables are set from various places. That between des:
/Etc/profile (for all users ).
Then all the files in the/etc/profile. d directory.
Then ~ /. Bash_profile.
Then ~ /. Bashrc.
/Etc/profile. d/is a good place to put your application specific setups. For example, I always use SSH for CVS (Cf. rsh). So I use:
Echo "Export cvs_rsh = ssh">/etc/profile. d/CVS. Sh
Chmod + x/etc/profile. d/CVS. Sh
# From: Unix-Frequently Asked Questions (5/7) [frequent posting] # bash # Start-up (in this Order): #/etc/profile-login shells. #. bash_profile-login shells. #. profile-login if no. bash_profile is present. #. bashrc-interactive non-login shells. # $ env-always, if it is set. # Upon termination :#. bash_logout-login shells. # Others :#. inputrc-Readline initialization. if [-F $ home /. bashrc] then. $ home /. bashrcfi
Complete!