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

What is the correct places to put bash aliases which should be available for everyone?

I want to set it up in such are a way that if some aliases are not available for somebody, it is because they overrode it themselves in their own settings.

share|improve this question
up vote 2 down vote accepted

Most .bashrc files have this in them by default, so users can choose not to have any of your globals if they want, and anything they put after this inclusion will be overriden.

# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
share|improve this answer
Just to note - Ubuntu Lucid uses bash.bashrc – vfclists Oct 17 '12 at 1:32

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.