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

Whenever I open my terminal, it displays

bash: No such file or directory

followed by the command prompt in the next line. My .bashrc file contains:


I mainly use Ubuntu for Root and Pythia et al, which seem to be working alright, but could someone tell me the possible reason for this? Thank you.

share|improve this question
up vote 1 down vote accepted

You have to find whereis the script Usually you can take it as heritage from some older Phd or postdoc.

Pay attention to the Environment variable of Root too (you can have problem later when you execute compiled macro).

To check if you just have it, try:

  • locate
  • whereis
  • find . -name "config.h"

and so on...

Put the ~/ if it is in your home directory.

share|improve this answer

Just remove source line from the .bashrc file.

And then source it.

source ~/.bashrc

It will never happens again.

share|improve this answer
That will solve the problem of the error being displayed when you login - but the reason for the error is that Ubuntu cannot find this file within your $PATH. – Scot May 28 '14 at 5:34

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.