Are there any changes you make to the default bash reconfiguration script that would be helpful for others to know?
Note that /etc/bashrc affects all users, where a .bashrc in a user's home directory just affects that user.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
I wouldn't change the default
/etc/bashrc. Instead, I would create a new file in
This way you have something that will survive upgrades. At least in Fedora and earlier RedHat, the
/etc/bashrc contains the following bit of script:
for i in /etc/profile.d/*.sh; do if [ -r "$i" ]; then . $i fi
The last time I wanted to add something globally, I created a new file in this directory with a name ending in
.sh and a
csh version ending in