LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-21-2004, 02:02 AM   #1
salmanucit
Member
 
Registered: Jul 2004
Posts: 54

Rep: Reputation: 15
Environment Variable


i m new in linux so i want to ask about environment variable...i know about the file for individualk user we use to set environment variables..but on the command line how do we set them???for example i want to set ORACLE_SID=ORCL......how would i set it??? which command would i use??? on windows we just write
c:\set oracle_sid=orcl
u see that on windows its not case sensitive also...so are environment variables case sensitive on linux and which command do we use to set them and also tell me that which command do we use to see the newly set value and also that how do we add aother value to an existiung environment variable..for example if PATH=/usr/bin and i also want PATH=/abc..how willl i do that i could retain the old value and add the new value to PATH environment variable
Regards
 
Old 07-21-2004, 02:23 AM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
in shell: export ORACLE_SID="value"

answer for PATH question

you have PATH set for example to "/bin"

and want to add same others values:

export PATH=$PATH:"/usr/bin":"/usr/local/bin"
 
Old 07-21-2004, 02:27 AM   #3
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
I forgot,
to see values
echo $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
environment variable gamor Linux - Newbie 4 04-30-2005 05:28 PM
environment variable mimi Linux - Newbie 1 04-10-2002 08:29 AM
environment variable mimi Linux - General 2 04-10-2002 07:45 AM
how to set CC environment variable mr.moto General 2 12-18-2001 01:02 AM
how do you set the environment variable CC? mr.moto Linux - General 0 12-17-2001 09:17 PM


All times are GMT -5. The time now is 11:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration