LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2002, 09:44 PM   #1
RedHat123
Member
 
Registered: Dec 2001
Posts: 60

Rep: Reputation: 15
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 ?
 
Old 07-16-2002, 11:48 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Must set up Enviroment variables for GCC 3.4.3? colintri Linux - Software 5 03-13-2005 07:42 PM
How can I see all the enviroment variables? zvonSully Linux - Software 3 02-09-2005 08:39 AM
enviroment variables cphase Linux From Scratch 7 01-19-2005 04:15 PM
Where to set enviroment variables vavoem Linux - Software 7 09-07-2004 02:13 AM
How to set System Enviroment Variables cathodion Linux - General 2 06-22-2004 06:05 PM


All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration