[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting Path ENV variable



	Subject: Re: Setting Path ENV variable
	Date: Sun, Dec 19, 1999 at 09:24:37PM -0800

In reply to:Andy Thomas

Quoting Andy Thomas(andyth@postalzone.com):
>| ok.. I've found the .bashrc in /root and put the path statement into there.
>|  Yet is still gives only the standard path (login and type: set).  Are
>| there multiple places where this needs to be set?
>| 
>| The syntax is:
>| 
>| PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/x11:/usr/code/c/util:/usr/code/c
>| /space:/etc/ppp:/etc/ppp/peers"

The /etc/profile PATH statement is for everyone.  To add _to_ that
PATH you should do the following in _your_ .bash_profile

export PATH="PATH:/usr/local/bin:/usr/bin:/bin:/usr/bin/x11:"

This is an example only!  The PATH after the = says to use whatever
the PATH was previously set to i(in /etc/profile) and add the neww 
paths to it.

The reason your above PATH statement didn't do anything is that you
forgot to export it.

HTH
-- 
You know you've been spending too much time on the computer when your
friend misdates a check, and you suggest adding a "++" to fix it.
_______________________________________________________


Reply to: