[NTLUG:Discuss] adding to the path

MadHat madhat at unspecific.com
Mon Nov 13 12:08:11 CST 2000


Stephen Klein wrote:
> 
> Just remember, if you want to make that path permenant, put it in your
> /etc/profile file.  Else it will go back to what it was before when you
> logout and log back in.

Quick notes...  the export command is only for BASH shell,not csh or
tcsh or ksh (IIRC). 

Second, the /etc/profile should only be changed if you want that change
to be for all users.  If you just want to change for say only "root" you
would modify the ~root/.bash_profile (for the bash shell), or the file
that corisponds to the shell you are using.

Most distributions do come with bash as the default, but not all (unless
something has changed).

> 
> Stephen
> 
> Jay Urish wrote:
> >
> > Cool thanks!
> >
> > At 11:24 PM 11/12/00, you wrote:
> > >* j at dalwan.net [2000.11.12 23:21]:
> > >: 1. How do you view your current search path?
> > >
> > >bash$ echo $PATH
> > >
> > >: 2. How do you change or add on to said current search path?
> > >
> > >bash$ export PATH=$PATH:/add/this/dir
> > >or
> > >bash$ export PATH=/only/want/this/dir

-- 
MadHat at unspecific.com
                                   "The 3 great virtues of a programmer:
                                      Laziness, Impatience, and Hubris."
                                                 --Larry Wall



More information about the Discuss mailing list