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

Showing Answers 1 - 6 of 6 Answers

Sunil J

  • Feb 23rd, 2006
 

shell variables are system environment variables.they include

TERM,SHELL, MAIL

the output of the shell variable we can see by typing the command

$>echo $TERM

ansi

at the prompt.

  Was this answer useful?  Yes

Chiranjeevi Manne

  • 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.

  Was this answer useful?  Yes

gthosani1

  • Dec 18th, 2007
 

Variables in UNIX is the way to pass information from the shell to the program

Shell variables apply to the current instance of the shell and are used to set short term working condition

They are represented in LOWER case

In C shell they are located in .cshrc file

  Was this answer useful?  Yes

rupesh kumar

  • Dec 17th, 2013
 

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

  Was this answer useful?  Yes

Give your answer:

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

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions