Ubuntu 12.04 bashrc file stops working

Asked by Julianloui

My ubuntu 12.04 bashrc file stopped working after I added some new aliases to it. I don't detect any obvious typos in it and restarting Linux does not help. The 'alias' command yields nothing on the screen. I'll appreciate any help or suggestions.


Question information

English Edit question
Ubuntu mcollective-plugins Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

what is the output of:

lsb_release -a; uname -a; ls -la ~/.bashrc; source ~/.bashrc


Revision history for this message
Julianloui (julianloui) said :


Thank you so much for coming to my aid. The 'source' command is really helpful as it exposes typos in my alias definitions in
the bashrc file. I am copying below the various commands' outputs after correcting the typos.

uname ==> blank

source ==> blank

lsb_release -a ==>
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise

ls-la-~/.bashrc ==>
-rw-r--r-- 1 russ russ 753 Feb 7 00:14 /home/russ/.bashrc

By the way, as always necessary, I need to restart the system in order for the correction to take effect.


Revision history for this message
actionparsnip (andrew-woodhead666) said :

No. You don't need to reboot at all. The file is a script full of settings so it will be read next time a terminal is opened. If you want to apply it to current terminals just run:

source ~/.bashrc

And the settings will be applied.