Can't make permanent changes to PATH - TechRepublic
General discussion
July 25, 2001 at 10:19 PM
danfalconar

Can’t make permanent changes to PATH

by danfalconar . Updated 24 years, 10 months ago

I’ve got Redhat 7.1 installed on my laptop, and I’ve just installed the Java Development Kit (JDK) so I can do my university work.

1)
The trouble is, every time I want to use the applications from the JDK, I have to put in the whole path to the location of the files (unless I am in the correct directory).
I’ve tried to change my PATH statement using this command:
PATH=/usr/java/java1.3.1/bin:$PATH
This is fine as it lasts for the whole session. However, if I open another Xterm window or logout, the changes are not saved.
I’m new to Linux so I don’t know what files I need to edit (or whatever else) in order to make the changes permanent.
I’m sure this is very simple, but I can’t find a simple answer to such a simple question! Please help!

2)
How do I set things up so that I can mount a drive permanently? I can mount a drive lasting for one session, but if I log back in then I have to re-mount. How do I make this permanent?

3) Is there an equivalent to DOS’s autoexec.batin Linux?

Many thanks in advance for your help.

Dan

This discussion is locked

All Comments