LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   understand variable (https://www.linuxquestions.org/questions/linux-general-1/understand-variable-811398/)

mah454 06-01-2010 12:36 AM

understand variable
 
Hello
env command show any environment variable on shell .
Who I can understand where is set this variables .
Example :
PATH set in /etc/Environment
PS1 set in /etc/bash.bashrc

But :
where is set TERM ? (which file)

timmeke 06-01-2010 01:57 AM

TERM is probably set when a terminal is opened (e.g. getty). See
Code:

man login
for example

mah454 06-02-2010 01:56 AM

Ok .
And other variables ... ?

timmeke 06-02-2010 02:03 AM

Variables can be set/unset at any time.

Several are set by your shell, depending on how it is started, for instance.
See
Code:

man bash
for bash shell.

Do you have any specific variables in mind?

mah454 06-03-2010 01:21 AM

I have problem with TERM variable.
I compile LFS and when run nano or vim command , recive this error :
Code:

#nano
error opening terminal
#echo $TERM
linux
#TERM=rxvt
'rxvt' unknown terminal type
#rxvt
rxvt: can't open display: 0

NOTE :I compiled rxvt for lfs .

timmeke 06-03-2010 01:39 AM

Is your X server compiled, running and configured?

mah454 06-03-2010 01:48 AM

no .
have linux text editor without X11 ?

timmeke 06-03-2010 04:20 AM

Try emacs, vim,...


All times are GMT -5. The time now is 02:33 AM.