The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
environment variables radhika03 Shell Programming and Scripting 3 01-22-2007 10:58 AM
environment variables sumsin High Level Programming 6 03-13-2006 08:17 AM
environment variables spavlov UNIX for Dummies Questions & Answers 3 08-20-2003 06:49 AM
environment variables Esaia High Level Programming 2 02-20-2003 05:19 PM
what is the use of Environment variables indianguru UNIX for Dummies Questions & Answers 2 07-24-2001 06:41 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-24-2005
Registered User
 

Join Date: Jul 2005
Location: banagalore
Posts: 44
help..Environment variables...

hi,

1). i would like to know what is meant by environment variables?
2). is the number of envi variables is a constant number for unix systems?
3). how to see the list of envi variables (and the values of the envi variables)in a single command?

4). if this questions were already asked please give the links for the threads?


thanks,
sekar
Reply With Quote
Forum Sponsor
  #2  
Old 08-25-2005
Registered User
 

Join Date: Jul 2005
Location: England
Posts: 183
1) An environment variable is simply a piece of information identified by a particular string that is available to one or more processes on the system. Environment variable names are by convention upper case, though this is not required.

For exmple the PATH environment variable contains a ':' deleimited list of directories to search in order to find any particular command.

2) No. There can be any number of environment variables on a system

3) set | more
Reply With Quote
  #3  
Old 08-29-2005
Registered User
 

Join Date: Jul 2005
Location: banagalore
Posts: 44
thanks Unbeliever,



i got it with set | more
and one more question:

2nd line of the set | more is: EDITOR=vi

1). it means the default editor is vi editor. correct?
2). can i assign a new editor to this environment variable?
Reply With Quote
  #4  
Old 08-30-2005
Registered User
 

Join Date: Mar 2005
Posts: 18
1) yes.
2) you can give a try by resetting it to alternate editor.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0