Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I have create few new aliases in ~/.bashrc then run source ~/.bashrc and it worked. But after restart terminal it does not work. I looked back and found the advice: create ~/.bash_aliases and in ~/.bashrc append string:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases

But the problem remains unsolved. Any suggestions?

share|improve this question
Type "alias" to see the list of all your assigned alias. Do you see your alias in the command output? – Flint Jul 7 '12 at 9:59
up vote 4 down vote accepted

Possibly your terminal starts a login shell. In this case not .bashrc is read, but bash looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order.

try man bash and search for INVOCATION to read more.

It may be useful to source .bashrc in your .bash_login.

share|improve this answer
You're right! Thank you! – Eugene Jul 7 '12 at 16:14

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.