Bash – Where is the system profile that gets sourced at login on CentOS 5.8

bashbashrccentos

In CentOS release 5.8 (Final), where is the bash system profile?

Is it /etc/profile ?

I've added the following to source my ~/.bashrc file but haven't had any luck as it fails. I know it fails because I've changed the $PS1.

I also think it may be caused because I have WHM setup.

Best Answer

The best place to put your own system-wide-scripts is at /etc/profile.d they need an ".sh" suffix to work. Look at /etc/profile and /etc/bashrc. Both scripts source these scripts.

Related Question