will add /usr/sbin to your PATH

Pedro Regis yellowdog-newbie@lists.terrasoftsolutions.com
Thu, 4 Sep 2003 14:17:41 -0300


On Thursday 04 September 2003 17:02, glenn greenfield wrote:
> ----- Original Message -----
> From: Pedro Regis <>
> Date: Thu, 4 Sep 2003 13:20:01 -0300
> To: "glenn greenfield" <rickenbacherus@linuxmail.org>
> Subject: path will be correct
>
> > Glenn,
> >
> > How may I do this command  press EscZZ]?
> >   [make the changes by moving to the line, press "i" to insert, type the
> > line, press EscZZ]
> >
> >
> > $ cat .bash_profile
> > # .bash_profile
> >
> > # Get the aliases and functions
> > if [ -f ~/.bashrc ]; then
> >         . ~/.bashrc
> > fi
> >
> > # User specific environment and startup programs
> >
> > PATH=$PATH:/usr/sbin:/sbin:$HOME/binexport PATH
> >
> > unset USERNAME
> >
> > =========================
> >
> > I changed my .bash_profile so that the sbin directories are ALWAYS on my
> > PATH.
> >
> > $ cd
> > $ vi .bash_profile
> >   [make the changes by moving to the line, press "i" to insert, type the
> > line, press EscZZ]
> >
> >
> >
> > Now, whenever you log in, your PATH will be correct.
>
> Hi Pedro,
>
> So you are attempting to use vi. brrrr Sorry but I don't know vi at all. 
> In my experience it's about as friendly as a coiled rattlesnake! :) 
> Instead I like mc (midnight commander)- it's usually included with most
> distros and is much more intuitive and user friendly.  You do not however
> need to edit your bash_profile.  Instead simply execute these commands and
> your PATH will be set:
>
> To find out what is currently in your path:
>
> echo $PATH
>
> Here's mine for example:
>
> echo $PATH
> /home/glenn/dist/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/loca
>l/sbin:/usr/local/bin:/usr/games
>
>
> To add a directory to your PATH simply execute this:
>
> export PATH=$PATH:/name/of/directory
>
> For example:
>
> export PATH=$PATH:/usr/sbin
>
> will add /usr/sbin to your PATH.

Bill,

how /usr/sbin to my PATH can be help me with my print problem?

thanks for help?

mailto:rhp@arraial.net


>