Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Pretty much a dupe of… Only difference is user vs global changes. – Adam Gibbins May 5 '09 at 20:44
Right, I want to know what things are good for all users to have. – Scottie T May 5 '09 at 20:46
Ok then, so its related, not a dupe :-) Could you not pick related records from the above URL however. – Adam Gibbins May 5 '09 at 20:46

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

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 .csh.

share|improve this answer

For reference the default Debian bashrc is stored in /etc/bash.bashrc rather than /etc/bashrc.

share|improve this answer
This applies to Arch Linux as well. – Matthew G Nov 23 '13 at 23:24

The /etc/bashrc of most distributions are pretty small and readable. I suggest reading them. If someone could find links to all the major ones, I would vote that up multiple times if I could.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.