GeekInterview.com
Series: Subject: Topic:
Question: 178 of 183

What are shell variables?

Shell variables are special variables, a name-value pair created and maintained by the shell. Example: PATH, HOME, MAIL and TERM
Asked by: Interview Candidate | Asked on: Mar 6th, 2005
Showing Answers 1 - 6 of 6 Answers
Sunil J

Answered On : Feb 23rd, 2006

shell variables are system environment variables.they includeTERM,SHELL, MAIL the output of the shell variable we can see by typing the command$>echo $TERMansiat the prompt.

  
Login to rate this answer.
Chiranjeevi Manne

Answered On : Mar 28th, 2007

There are variable shell variable which would fix the environment once the user logs into OS.One can find shell variables by issuing "env"Example shell variables are PATH, TERM, HOME, SHELL etc...One can define his own shell variables and enter them in "/etc/bashrc" file so that they will take into effect whenever they log into OS.

  
Login to rate this answer.
gthosani1

Answered On : Dec 14th, 2007

View all answers by gthosani1

You could see all the SHELL variable by typingset | less

  
Login to rate this answer.
gthosani1

Answered On : Dec 18th, 2007

View all answers by gthosani1

Variables in UNIX is the way to pass information from the shell to the programShell variables apply to the current instance of the shell and are used to set short term working conditionThey are represented in LOWER caseIn C shell they are located in .cshrc file

  
Login to rate this answer.
poornimay

Answered On : May 22nd, 2008

View all answers by poornimay

These are some more variables    .......$PWD,  $DIR_COLORS,  $SHELL,  $SHLVL

  
Login to rate this answer.
rupesh kumar

Answered On : Dec 17th, 2013

Shell variables are special variables, a name-value pair created and maintained by the shell. Example: PATH, HOME, MAIL

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.