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

I type in ls -la and it shows nothing. It should say myname at Mac in ~ i think.

This all happened after I made a .bash_profile file to get my terminal to show multi colors. I can't find the .bash_profile file since it's hidden, so I can't delete it.

Here's a screenshot:

enter image description here

share|improve this question

migrated from Dec 6 '12 at 7:24

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

Please post the content of your .bash_profile file (see my answer). But not as a screenshot, please copy the text. – Matteo Dec 6 '12 at 7:50
possible duplicate of Why does my iterm window say -bash: alias: -G”: not found – 8088 Dec 6 '12 at 18:55
up vote 2 down vote accepted

You have one or more errors in your .bash_profile

  • alias ls='"command' does not provoke any error but does not make any sense: you substitute ls with "command which is the beginning of a string
  • you have somewhere another alias declaration with an error (you should post the content of your .bash_profile) but look for a -G in an alias declaration

The file is hidden in the finder but you can:

  • delete it with rm .bash_profile
  • edit it with emacs: emacs .bash_profile
  • rename it mv .bash_profile newname
  • ...

To see the content try

  • cat .bash_profile or less .bash_profile
share|improve this answer
Thank you Matteo! – Pavan Katepalli Dec 10 '12 at 6:12

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.