Super User is a question and answer site for computer enthusiasts and power users. 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

I created an alias so that when I type la it does ls -la.

When I fire up terminal on my Mac, I get:

-bash: alias: la: not found
-bash: alias: =ls -la: not found

Why would this be?

My .bash_profile looks like:

alias la ='ls -la'
share|improve this question
up vote 8 down vote accepted

I think it needs to be:

alias la='ls -la'

(note there are no spaces around the equal sign.)

share|improve this answer
That's right, no spaces around the equal sign. – Dennis Williamson Jul 2 '10 at 9:56
I had spaces, not sure how they got there? strange! – user27449 Jul 2 '10 at 14:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .