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

When I want to enter a command (for example say) it returns a message like this:

bash: say: command not found.

It appears every time I write a command. What do I have to do?

share|improve this question

migrated from Jan 24 '12 at 20:11

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

Have you made sure that your $PATH variable is set?

You can check by typing this in the Terminal:

echo $PATH

If nothing is listed after you try that... it might be part of the problem.

(For more information, you could try checking this page out:

share|improve this answer
Just for reference the default $PATH variable should return the following in a Snow Leopard installation at least. /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin – Sean Ferguson Jan 24 '12 at 21:05

If you use quotes it will not display them, but tell you that there is no command. Many tutorials use quotes to show what you should type in, but sometimes they don't say "Without the quotes."

share|improve this answer

In the username in OSX, sometimes the $ is included meaning that you do not have to include it in your command.

share|improve this answer

Let's find out if the say executable (program) is in the right place. In the terminal, type

which say

you should see

share|improve this answer

You must log in to answer this question.