setting executable path to both /usr/local/bin/ & /usr/bin/

setting executable path to both /usr/local/bin/ & /usr/bin/

Post by Eric Pott » Fri, 18 Dec 1998 04:00:00



[Posted and mailed]

Coolkiller enlightened this group thus:

Quote:> Hi.
> I'm using RedHat linux 5.1 and for Redhat 5.1 path for executable files are
> set to /usr/bin/ but not /usr/local/bin/ so I have to copy all the files at
> /usr/local/bin/ to /usr/local/bin/ in order to use them with out typing full
> path. Is there anyway that I can set executable files path to
> /usr/local/bin/ ???
> Thanks.
> -Jason-

You can set the path in ~/.profile or /etc/profile.

export $PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin

Add as many as you like, but it is usually not recommended to add the current
directory (.)
--

 *^  / \  \   |  \       When replying to me,  remove the NOSPAM
 / \/   \  \__|   \      from my address.
/  /   ^ \  \    
  /       \  \           Eric Potter
 /  ^   ^  \  \          

 
 
 

setting executable path to both /usr/local/bin/ & /usr/bin/

Post by Coolkille » Sat, 19 Dec 1998 04:00:00


Hi.
I'm using RedHat linux 5.1 and for Redhat 5.1 path for executable files are
set to /usr/bin/ but not /usr/local/bin/ so I have to copy all the files at
/usr/local/bin/ to /usr/local/bin/ in order to use them with out typing full
path. Is there anyway that I can set executable files path to
/usr/local/bin/ ???
Thanks.
-Jason-

ICQ#21789464
http://homepages.ihug.co.nz/~jlmulder
======================================
          There is no natural genius.
                A genius is only made by oneself
                           -Coolkiller-
======================================

 
 
 

setting executable path to both /usr/local/bin/ & /usr/bin/

Post by Daniel A. Jablonsk » Tue, 22 Dec 1998 04:00:00


Uh, yes.

Add /usr/local/bin:/usr/bin to your PATH in .kshrc or .cshrc or .bashrc --
whichever shell you are using.  Copying all the files was not a real good way
to fix this.

  -DJ

Quote:> Hi.
> I'm using RedHat linux 5.1 and for Redhat 5.1 path for executable files are
> set to /usr/bin/ but not /usr/local/bin/ so I have to copy all the files at
> /usr/local/bin/ to /usr/local/bin/ in order to use them with out typing full
> path. Is there anyway that I can set executable files path to
> /usr/local/bin/ ???
> Thanks.
> -Jason-

> ICQ#21789464
> http://homepages.ihug.co.nz/~jlmulder
> ======================================
>           There is no natural genius.
>                 A genius is only made by oneself
>                            -Coolkiller-
> ======================================

--
=============================
 Daniel A. Jablonski

=============================