Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting variable PATH

41 views
Skip to first unread message

Victor Gomez

unread,
Jul 26, 2001, 3:58:40 PM7/26/01
to
Hello guys, I am novice at this, and I have a question about how to set
my PATH.
for example when I log on to my Solaris boxes, I type echo $PATH and it
gives me
whatever directories are in my path, but say that I want to have the
files that are stored in /usr/ccs/bin in my path, how can I set that
permanently in my PATH, so I don't have to be adding directories to my
PATH variable and then exporting the PATH variable all the time.
As an example when I log on to system, say "melocoton", but I need to
run the
make command that is located in /usr/ccs/bin, I will have to add that
path to my PATH variable, then export my PATH variable and then execute
what I want.
HOw can I have that permanently in my PATH.
I use Solaris 2.6, and KornShell as default.
Thank you.

Victor Gomez

Ed F. de Guzman

unread,
Jul 26, 2001, 4:09:54 PM7/26/01
to
Edit /etc/default/login - look for the PATH line and add the directory you
want.

Or, if only certain individuals need a specific path, edit the .profile,
.login, or .cshrc files located under the user home folders to reflect the
required directory as appropriate.

Ed

Dave Grantier

unread,
Jul 26, 2001, 9:57:07 PM7/26/01
to
If you're using ksh, just edit your .profile

PATH=$PATH:/usr/sbin:/usr/local/bin:~/bin #etc
export PATH

Hint, sounds like you're a newbie. You'll probably want to learn to use
vi as well.
man vi

--
+---------------------+---------------+
|nojun...@nospam.com| bellsouth.net |
|nos...@nojunkmail.com| davegrantier@ |
+---------------------+---------------+

0 new messages