Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

A while ago I installed a program called "j" for the terminal. It was supposed to make things simpler. However, after a while of using it I decided I didn't really need it and trashed it. Now ever time I open the terminal it says:

-bash: /Users/aslet/ No such file or directory

I have no idea what file is telling the terminal to look for the program, so some help would be appreciated.

share|improve this question

migrated from May 27 '13 at 5:20

This question came from our site for professional and enthusiast programmers.

You can also look for the line doing grep "" * in your home directory. – fedorqui May 25 '13 at 23:19
up vote 0 down vote accepted

When you fire up the terminal, content from the following gets loaded upon existence:

~/.bash_login   (if .bash_profile does not exist)
~/.profile      (if .bash_login does not exist)

It appears that the one of the file listed above still has reference to the script which no longer exists after you removed the program.

Comment the line which calls that script and it should resolve your issue.

share|improve this answer
I don't have a .bash_login file in my home directory in Mac OSX 10.6.8. – 7stud May 25 '13 at 22:14
Right. I updated the answer. – jaypal singh May 25 '13 at 22:21
@Jaypal That's the thing. I already checked all these files and it's not there. – Aslet May 25 '13 at 23:21
@Aslet Check your /etc/profile. If you don't have any reference in all of the above files then the reference has to be in /etc/profile. – jaypal singh May 25 '13 at 23:26
@Jaypal Thanks! Found it! – Aslet May 25 '13 at 23:50

Check .bashrc and .bash_profile in your home directory. The leading . means they are hidden files. Look for a line containing the directory listed in the error message.

share|improve this answer

Your Answer


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