Article View: aus.computers.linux
Article #54935Re: (Newbie)How to add path?
From: Peter Rye
Date: Sun, 17 Aug 1997 00:00
Date: Sun, 17 Aug 1997 00:00
35 lines
1908 bytes
1908 bytes
"Gama" <ojays1@cobweb.com.au> writes:
> I just download JDK Kit and Ada and installed it in my PC. Now HOWTO
> document mentioned about adding path of the JDK Kit, the problem is I don't
> know which file to modify (I was assuming adding path statement would like
> editing the AUTOEXEC.BAT file in MSDOS).
The path is set for each user on login.
Have a look at your .profile file in your home directory.
Add or change a line to something like this:
setenv PATH "${PATH}:/path/to/JDK"
or, if you get bash running again, like this (you probably already
have the export line in your .profile (or .bash_profile):
PATH=$PATH:/path/to/JDK
export PATH
You can make this the default for everyone on your system by changing
/etc/profile (for bash) or /etc/csh.cshrc (for [t]csh) in a similar way.
> I'm using Linux from Slackware distribution ver 3.2. It is setup with bash
> shell, but I changed it to tcsh.( I couldn't get it back to bash again, I
> don't know why).
chsh
or edit /etc/passwd as root.
--
Peter Rye <prye@picu-sgh.demon.co.uk>
Consultant in Paediatric Intensive Care, St. George's Hospital, London, UK
Ph: +44 (0)181 725 1932 Fax: +44 (0)181 725 0089
** Smoking areas in restaurants are like peeing areas in swimming pools. **
Technical Details
Message-ID:
<m3wwlk4rad.fsf@picu-sgh.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bcab1e$18ddf820$88e71acb@ojays1>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,66ff1b7b09a62924 X-Google-Attributes: gid102983,public X-Google-Thread: 100b1f,66ff1b7b09a62924 X-Google-Attributes: gid100b1f,public From: Peter Rye <prye@picu-sgh.demon.co.uk> Subject: Re: (Newbie)How to add path? Date: 1997/08/17 Message-ID: <m3wwlk4rad.fsf@picu-sgh.demon.co.uk> X-Deja-AN: 267985150 X-NNTP-Posting-Host: picu-sgh.demon.co.uk [194.222.182.163] References: <01bcab1e$18ddf820$88e71acb@ojays1> Organization: St. George's Hospital, Paediatric ICU Newsgroups: aus.computers.linux,comp.os.linux.help