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

Re: 2 questions



On Mon, 2 Sep 2002 18:39:11 -0400
Edward Guldemond <thedebategod@yifan.net> wrote:

> On Mon, Sep 02, 2002 at 02:57:53PM -0700, Jianbo Wang wrote:
>
> > I installed woody on my pc. I have 2 questions:
> > 1. PATH: I tried to add some directories to PATH, and I change
> >    /etc/profile and login.def, but $PATH doesn't change.
> >    ( I add $PATH="$PATH:/new_dir" in /etc/profile and login.def)
> 
> Put 'export' before the $PATH part.  For example:
> export $PATH="$PATH:/new_dir"

The above won't work.  You don't want the $ on the name of the variable
you are exporting.  So, the line would look more like this:

  export PATH="$PATH:/new_dir"

However, /etc/profile already does the PATH exporting.  When you added the
entry, did you ensure that the addition was before the line reading:

  export PATH

> > 2. How to add shutdown and reboot to logout menu?

This depends entirely on which login manager you are using.

-- 
Jamin W. Collins



Reply to: