b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

New Linux User

HOWTO: Which Application Will Run?

by Jon on July 3rd, 2006

The “path” in pretty much any operating system refers to the directories that the OS will search when looking for a file. For example, if your path statement is “/usr/bin” and you type the command “which”, then your OS will search /usr/bin for the which command. If it finds it, it will run it. If not, it won’t.

This may not seem like a useful command right off the hop, but it is if you have more than one version of an application installed. Consider that you may have two versions of MySQL installed and you’re sending queries to it via a PHP script. In order to see which version of MySQL is going to get those queries, you can type:

which mysql

And the path to the MySQL that will be called a “MySQL” command will be displayed on the screen.

POSTED IN: How To

0 opinions for HOWTO: Which Application Will Run?

  • No one has left a comment yet. You know what this means, right? You could be first!

Have an opinion? Leave a comment:




Check Spelling
Activate Spell Check while Typing