Click to See Complete Forum and Search --> : Different types of Apps


TooEZ
01-05-2001, 09:55 PM
This is a realy stupid question but here goes:

On my linux box there are 2 types of apps (./appone and apptwo). What I realy want to know is what is the difference and why do some apps require the ./ before them?

Cheers
TooEZ

PS I'm running debian 2.2r2, but it seems that there are the same sort of things on other distros...

ph34r
01-05-2001, 10:13 PM
apptwo is in your $PATH , whereas if appone is, you want to referr to a different version in your current directory, or its location is not in your $PATH.

The ./ tells your shell to start looking in the current directory, instead of starting with the first dir in your path.

mdwatts
01-06-2001, 10:21 AM
The shell by default, does not search your current directory for the command. It only search what is in your $PATH. Use ./ to tell/make the shell search your current directory for the command.

Most users are thinking of dos, where your current directory is automatically searched first for the command and then your $PATH.