Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-25-2008, 09:16 PM   #1
LQ Newbie
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Creating New Environment variable

Hello All,

I'm New to Linux

Can anyone tell me how to create new env variable in Linux ?

Secondly ,

How to export new variable from child to parent shell?

Thanks in advance

Old 11-25-2008, 10:23 PM   #2
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
Add the variable to /etc/environment for permanant env variables, or add an export command to a specific user's profile. export VARIABLE=contents will export to your current enviornment. You cannot export a variable to parent shell.


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 vedanu Programming 1 05-17-2007 08:20 AM
Environment variable.. manomohan Programming 1 02-27-2007 12:27 AM
Environment Variable salmanucit Linux - Software 2 07-21-2004 03:27 AM
environment variable mimi Linux - Newbie 1 04-10-2002 09:29 AM
environment variable mimi Linux - General 2 04-10-2002 08:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:12 PM.

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