PDA

View Full Version : Almost no commands are working in terminal




signor.dictator
Jun 14, 2012, 02:31 PM
Virtually no commands in terminal are working. For example, wget, shell, etc..none of them work. Do I need to install or change a path or something? Could someone tell me what I need to do step by step and exactly what I need to time in terminal in order to finally get commands to work? I'm trying to do this all on my local machine.



GorillaPaws
Jun 14, 2012, 02:43 PM
What commands ARE working? This info may help narrow down the problem.

chown33
Jun 14, 2012, 02:55 PM
Post the output of this command:
echo "$PATH"


FWIW, wget is not installed by default on any Mac OS X versions.

And I know of no command named "shell", though I know of multiple shells.

If you're saying the problem is that you can't open a shell in a Terminal window, then it's quite possibly a botched shell profile file. To find out, you'll need to tell us what shell you're using (is it the default bash or something else?).

You could also create a new user account in System Preferences (the Account pane before Lion, the User and Groups pane in Lion) and try Terminal there. If that works, post again and we can give commands to help discover and/or change the shell profile in the malfunctioning account.

And please identify what OS version you're using.

kryten2
Jun 14, 2012, 02:57 PM
Which commands aren't working? Wget is not a standard OS X command. You can install it with MacPorts or compile it from source. Couldn't find shell either.

Cromulent
Jun 14, 2012, 03:14 PM
Which commands aren't working? Wget is not a standard OS X command. You can install it with MacPorts or compile it from source. Couldn't find shell either.

I'd highly recommend using Homebrew instead of MacPorts. It is extremely active and has numerous packages available with more coming along daily.

https://github.com/mxcl/homebrew