Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Mac OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 1, 2010, 03:54 AM   #1
macmania82
macrumors regular
 
Join Date: Apr 2009
Terminal > "-bash: command not found" for almost anything!! Mac OS X Snow Leopard

Hi friends,

I'm using Mac OS X Snow Leopard.

whenever I try almost any command at Terminal, I come across an annoying message like:

-bash: unzip: command not found
this is a sample for i tried unzip, but it happens for so many other command as well

so what is that? do I need to install anything to make terminal work with these commands?

Appreciate helps! thanks
__________________
I love my :apple : )
Macbook Pro 17'' unibody Anti-Glare,
Intel Core2Duo 2.80GHz, 4GB DDR3, 500GB, NVIDIA GeForce 9600GT 512MB GeForce 9400M +
macmania82 is offline   0 Reply With Quote
Old Apr 1, 2010, 07:01 AM   #2
angelwatt
Demi-God (Moderator emeritus)
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: Ohio
Sounds like the path variable may have gotten befuddled. Try running the following,

Code:
/bin/echo $PATH
I get the following, but yours won't be exactly the same.
Code:
/opt/local/bin:opt/local/sbin:/Applications/MAMP/bin/php5/bin:/Applications/MAMP/Library/bin:/Applications/Adobe AIR SDK/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
angelwatt is offline   0 Reply With Quote
Old Apr 1, 2010, 07:22 AM   #3
macmania82
Thread Starter
macrumors regular
 
Join Date: Apr 2009
Code:
/bin/echo $PATH
give the line below:

Code:
/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/opt/subversion/bin/:PATH
so what does it mean? :/
__________________
I love my :apple : )
Macbook Pro 17'' unibody Anti-Glare,
Intel Core2Duo 2.80GHz, 4GB DDR3, 500GB, NVIDIA GeForce 9600GT 512MB GeForce 9400M +
macmania82 is offline   0 Reply With Quote
Old Apr 1, 2010, 07:23 AM   #4
belvdr
macrumors 68040
 
Join Date: Aug 2005
Quote:
Originally Posted by macmania82 View Post
Code:
/bin/echo $PATH
give the line below:

Code:
/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/opt/subversion/bin/:PATH
so what does it mean? :/
Your PATH is messed up, particularly the end of it. Were you modifying /etc/bashrc or .bashrc in your home directory?

You want to modify the PATH line above so the final word is $PATH, not just PATH.
belvdr is offline   0 Reply With Quote
Old Apr 1, 2010, 12:40 PM   #5
angelwatt
Demi-God (Moderator emeritus)
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: Ohio
In addition to the above, the change could have been made in a .profile folder in your home directory. This file and those mentioned by belvdr are hidden files so you will not see them in Finder unless you have hidden files shown. You may not have edited these files, some programs will edit them too, but if that's the case then they have a typo to fix.

To open these hidden files from Terminal,
Code:
/usr/bin/pico filename
I believe that's the full path to the pico editor. Not at my Mac to be certain. Alternatively,
Code:
open -t filename
will open the file in TextEdit. Just make sure TextEdit edits it as plain text instead of rich text. As a last alternative, use TextWrangler, which has a open hidden option to get to these files.
angelwatt is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Mac OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Booting is so slow: Mac OS X Snow Leopard IndianSteveJobs Mac OS X 15 Jul 16, 2012 08:23 PM
Will Stronghold 1 for mac work on snow leopard? j.burris Mac and PC Games 11 May 24, 2011 03:31 PM
Streaming movies- G5 (w/ Leopard, for free) vs. Mac Pro (w/ Snow Leopard, not free) ra4oasis Mac Pro 13 Feb 18, 2011 06:43 PM
"Bash: command not found" for almost anything willabtsm Mac Basics and Help 5 Jan 5, 2011 03:22 PM


All times are GMT -5. The time now is 01:37 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC