How To Find The Location Of An Executable Program In The Mac Terminal

by Alvin Poh | Thu, Feb 4, 2010

Tutorials & Tips


mac terminalThe Mac platform is amazing, and what makes it even more powerful is that it’s running on Unix, so you have the incredible power of bash and the shell terminal at your disposal. For instance, what takes 5 clicks and 30 minutes of your time might just be solved by running one command in Terminal – and that’s underestimating it.

Take for instance, this scenario: Sometimes you’ll need to find out the path of something in Terminal when you’re using your Mac, and there’s an easy way to do that. The command’s which, and you use it in this manner:

which

For example, if I wanted to find out the location of the wget program, I just type “which wget” in Terminal, and the command will output something like the following:

/usr/local/bin/wget

Simple!

Similar Posts:

Tags: , , , , , , , , , , , , , , , , ,

This post was written by:

- Alvin Poh lives in Singapore, and is interested in marketing, techy stuff, and likes to just figure out how the two can work with each other. He can also be found on Google+.

Get Alvin's Report On How To Blog Successfully - Free!

Leave a Reply

*