On Thu, 2 Aug 2001, Kathy Bieltz wrote:

> Dale,
>
> You don't have the current directory "."
> defined in your PATH.
>
> Typing '.\' in front of an executable
> tells the system to look in the current
> directory for the executable.
>
> Do an 'echo $PATH' to see what
> your path is.
>
> If you want to add the current directory
> to you path then do the following:
> PATH=.:$PATH
> export PATH
>
> To always add the currect directory to
> your PATH you could add the above
> to your '.bashrc' script in the your
> home directory.
>
> Kathy Bieltz
>
It is usualy considered a security risk to have the current directory on
your path.  If you are going to put it on your path, please put it at
the end of your path, and not at the start.  With it at the end of your
path, a script/program in the current directory will not override the
standard commands unless you specificly call for the one in the current
directory.

The way I like to do it is to create a bin directory off my home
directory, and put my scripts, and personal programs in there.  The I
put this directory at the end of my path.  That way, no matter where in
the directory tree I am, I always have access to my personal
scripts/programs without typing in the entire path.  It also makes
finding the scripts easy when I need to update them.

You can do this system wide by adding a bin directory in /etc/skel so
each user you create gets a bin directory in their home directory, and
then adding $HOME/bin to the default path.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



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

Reply via email to