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

Every single time I open terminal or other programming related program I get this output: "-bash: ‘alias: command not found"

I can't seem to remove / delete it.

share|improve this question

migrated from Mar 29 '12 at 1:08

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

up vote 3 down vote accepted

This usually means that either your system administrator placed a command in the global bash config files, or that you have a problem with your personal config files. Run these commands from your terminal to search for the offending "alias" lines:

pico ~/.bashrc
pico ~/.bash_profile

If you don't see it there, ask your system admin.

share|improve this answer
I found it in ~/.bash_profile, so my last question is: how do I delete it? Thanks anyway. – Marnix Mar 27 '12 at 20:47
The pico text editor is pretty simple. It gives instructions on how to use it at the bottom of your terminal screen. The basics are to use the arrow keys to navigate to the line you want to edit, delete the line and press control+o to save the file. Anywhere you see the ^ character, it means the control key. – Shea Lutton Mar 27 '12 at 21:03

Your Answer


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