How to configure common Environmental Variable In Red Hat Linux?

Asked By 20 points N/A Posted on -
qa-featured

I cannot see the value of variable, What is a value of Environmental Variable name HOME, LANG, PWD, EDITOR? 

How I can I see the value of variable?

If any one can help please!

SHARE
Answered By 0 points N/A #133397

How to configure common Environmental Variable In Red Hat Linux?

qa-featured

Hi Dunley, 

You can easily configure environmental variable.

Local variable exist only in current shell instance.
Environmental Variable  passed to sub shells.
Local variables can be exported in to environmental variable.

For example:
# export EDITOR=/usr/bin/pico ( Here you replaced the default editor by Pico)

To remove the value of an environmental variable:
# unset EDITOR

Common Environmental Variable:
HOME   path to user’s home directory
LANG   identification of default language
PWD   user current working directory
EDITOR  default edits program for text
LESS   option to pass to the less command

To see the value of a variable:
# echo $USER to see the variable

Britnu Salu

Login/Register to Answer

Related Questions