bigGreatThanksHipHipHipToYou Emmanuel.
You gave the answers to many question I asked myself but didn't
find anywhere !
See Ya soon
bbsc
ism

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de Emmanuel Seyman
Envoye : mardi 21 mai 2002 15:35
A : [EMAIL PROTECTED]
Objet : Re: Why not from the current directory ?


On Tue, May 21, 2002 at 02:37:57PM +0200, Ismael Touama wrote:
> 
> Why must we use this prefix to make works a program ?

When you type a command, the system looks in a predefined list of
directories for the command. If it finds it, it runs it. Otherwise,
you'll get the standard "file or directory" not found.

FWIW the list in definned in the PATH environment variable and you
can get the list by typing `echo $PATH` .

When you install the apache rpm, the binaries are stored in (from
memory) /usr/bin which is in $PATH. When you compile the tarball,
they will be installed in /usr/local/apache/bin which isn't in
the $PATH and you'll need to specify the directory in which the
command is yourself.

You can do this by cd-ing to the directory in which the command is
and typing `./command` (where command is the name of the program
you want to launch). This works because "." is a shortcut for the
directory you are in at the moment. "." is *not* in $PATH because
this represents a security risk (since there's no way to be sure that
you'll always be in a safe directory). You can add it to the list
but that isn't recommended.

Emmanuel



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to