G
germpest
Guest
I am trying to learn the terminal and for some reason basic commands don't work. I am trying "ls" and it says bash: ls :command not found. Although yesterday this was working fine. Is there a way to reinstall the terminal?
cradom said:It's not the terminal, it's your path, or lack thereof. What do you get when you type:
echo $PATH
where is that located? /etc/? I can't even su to root.cradom said:Hmmm...looks like something is messed up. Check your .bashrc or .bash_profile file for syntax errors. Probably where it says { PATH}. Should look like this: ${PATH}.
cradom said:What rman said. You can open a terminal and type:
/bin/ls -a
to see if it's there. If you're not familiar with the pico editor or vi, you can open it and edit it with Textwrangler (free) from the Finder. Use the 'open hidden' menu item.
From what your $PATH shows, you might have DarwinPorts installed? Normally there is no /opt directory in OS X, and nothing in /usr/local/bin.