Review your favorite Linux distribution.
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 02-21-2005, 08:11 PM   #1
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
set/export command?

difference between set and export command?

particular don't know the difference between set and export

and difference between shell/environmental variable
Old 03-05-2005, 07:11 PM   #2
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Set just gives the variable a value. (Usually written as variable = value), while "export" makes the variiable available for other shell proguams to use later. (Actually, "set" has options for exporting the value, but let's not go there.)

There are several good online shell scripting tutorials you could look at. Some are in the "tutorials" section of these forums.


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
export command rohr Mandriva 1 04-11-2005 05:24 AM
set and export using bash script acummings Linux - General 10 01-03-2005 02:22 PM
Permanently Set a Export Setting (LD_LIBRARY_PATH) nistelrooy Linux - General 1 11-25-2004 11:33 AM
When to use the set and when to use export command? davidas Linux - Newbie 5 03-29-2004 04:01 AM
what is the difference between export and set ashley75 Linux - General 7 11-04-2003 04:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:02 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
Open Source Consulting | Domain Registration