Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 2 down vote accepted
/etc/bashrc

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
fi
share|improve this answer
    
Just to note - Ubuntu Lucid uses bash.bashrc –  vfclists Oct 17 '12 at 1:32
add comment

Your Answer

 
discard

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.