🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.uu.comp.os.linux.questions
Article #61

Re: Path

#61
From: 'Dungeon' Dave
Date: Wed, 29 Mar 2000 00:00
40 lines
2203 bytes
In article <8btnju$7rd$1@cubacola.tninet.se>, Torgny Johansson
<torgny_johansson@bigfoot.com> writes
>How do I set the path variable in Linux? I want to use JDK and need to 
>add
>it's path to be able to compile my java apps from any directory.
>
>Where do I set it?

In one of the startup scripts - /etc/profile for a system-wide setting,
.bash_profile in your home directory for a local setting, or .kshrc
for an individual shell setting.

Basically, it's the environment variable PATH, which needs to be
exported once set (so that shells read the same variable) - check
any of the above lines for a line that reads:

PATH=/usr/bin:/sbin: ... etc. You can either add a colon and then
the additional path bit at the end or add it on a new line with:

PATH=$PATH:/usr/bin/whatever (ie: existing path plus appended
bit).

Don't forget the command: "export PATH" a few lines afterwards.

To check it, add the lines into (for instance) .bash_profile and then
relogin. Type "echo $PATH" to see if the new path has taken.
>
>Plz email any answers to torgny_johansson@bigfoot.com

Post it in a newsgroup, read it in a newsgroup. That way others
get the benefit of your questions.
>
>Thanks alot!
>
>

-- 
 
Linux: love it or loathe it, it's here to stay!!
(I need a service pack for my tagline)
Technical Details
Message-ID: <cHy4ICAlKn44Ewql@ghastly.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8btnju$7rd$1@cubacola.tninet.se>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f99bc,abb9764db5c2d90b
X-Google-Attributes: gidf99bc,public
X-Google-Thread: 10a997,abb9764db5c2d90b
X-Google-Attributes: gid10a997,public
X-Google-Thread: f98d3,abb9764db5c2d90b
X-Google-Attributes: gidf98d3,public
From: 'Dungeon' Dave <Dungeon@NoSpam.demon.co.uk>
Subject: Re: Path
Date: 2000/03/29
Message-ID: <cHy4ICAlKn44Ewql@ghastly.demon.co.uk>
X-Deja-AN: 604028599
X-NNTP-Posting-Host: ghastly.demon.co.uk:193.237.153.154
References: <8btnju$7rd$1@cubacola.tninet.se>
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 954364699 nnrp-01:4695 NO-IDENT ghastly.demon.co.uk:193.237.153.154
Organization: Blank
MIME-Version: 1.0
Reply-To: 'Dungeon' Dave <Newsgroup@ghastly.demon.co.uk>
Newsgroups: alt.uu.comp.os.linux.questions,apana.lists.os.linux.admin,apana.lists.os.linux.redhat