LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to set enviroment variables (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-enviroment-variables-25929/)

RedHat123 07-16-2002 08:44 PM

how to set enviroment variables
 
RH 7.2 - what is the easiest way to set enviroment variables? I can see whats there for a paticular variable with echo $PATH.

Also, I cant run Java commands - i get "bash : java : command not found".

Ive got the book "Redhat Linux 7.2 bible" and RH 7.2 installed. Ive since come a long way:
Samba configured and my network networking...
various software installed
Java IDE NetBeans installed

Where is a good online resource for dealing with the shell ?

crabboy 07-16-2002 10:48 PM

You can set env variables like this.
Code:

PATH=$PATH:/usr/java/bin
That assigns the existing PATH and the additional /usr/java/bin to the environment variable PATH.


All times are GMT -5. The time now is 01:45 AM.