$PATH
glenn greenfield
yellowdog-newbie@lists.terrasoftsolutions.com
Thu, 04 Sep 2003 13:02:53 -0700
----- 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/local/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.
HTH
I deleted your email address Pedro- sorry.
--
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr
Powered by Outblaze