Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need a little help with this syntax.

  1. Do I use the quotes?
  2. Do I add these variables to .bashrc or bash?
  3. Are bash and .bashrc the same file?
  4. Where is the .bashrc file?
  5. What is the "." leading the .bashrc?

    echo "export CWPROOT=~/cwp/43R1" >> ~/.bashrc
    echo "export PATH=$PATH:~/cwp/43R1/bin" >> ~/.bashrc
share|improve this question
All file names starting with . are hidden by default and if you are normal user, you don't need to see bashrc file. So, it is named .bashrc. Regarding location of .bashrc file, go to your home folder and press <kbd>Ctrl</kbd>+<kbd>H</kbd>. You will see the .bashrc file –  hatter Nov 26 '13 at 16:47
Can you please elaborate on your 1st and 2nd questions? –  hatter Nov 26 '13 at 16:48
The quotes around "export etc...". and #2 i was not able to find bashrc before...now i know it's location so i'll add the new variables there. sorry –  jakey Nov 26 '13 at 16:51
Anything in .bashrc is executed whenever a terminal window is opened. If this is what you wanted, you can add it to this file. In #2, what is bash? Is there some file called bash in your home directory? –  hatter Nov 26 '13 at 17:03
not home but in bin there is a bash file. –  jakey Nov 26 '13 at 17:04

Your Answer


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

Browse other questions tagged or ask your own question.