Whenever I open my terminal, it displays

bash: config.sh: No such file or directory

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

source config.sh

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.


You have to find whereis the script config.sh. 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 config.sh
  • whereis config.sh
  • find . -name "config.h"

and so on...

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


Just remove source config.sh line from the .bashrc file.

And then source it.

source ~/.bashrc

It will never happens again.

  • 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 clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.