Click to See Complete Forum and Search --> : Adding a path


variable
08-07-2001, 07:56 PM
What is the best way to add a path to a particular account in Mandrake 8.0?

MBMarduk
08-07-2001, 08:35 PM
One way:
edit your /etc/profile...find the line

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

and add you new dir with ':' as a separator

Or type

export PATH=whatever

I might be wrong on this one.

MandK_10
08-07-2001, 08:39 PM
Originally posted by MBMarduk:
<STRONG>One way:
edit your /etc/profile...find the line

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

and add you new dir with ':' as a separator

Or type

export PATH=whatever

I might be wrong on this one.</STRONG>


Good except must include

:$PATH

after

export PATH=&lt;pathname&gt;

I believe that this adds to the list otherwise it will overwrite the list.

Mike