LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-01-2010, 12:36 AM   #1
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Rep: Reputation: 15
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)

Last edited by mah454; 06-01-2010 at 12:42 AM.
 
Old 06-01-2010, 01:57 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
TERM is probably set when a terminal is opened (e.g. getty). See
Code:
man login
for example
 
Old 06-02-2010, 01:56 AM   #3
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
Ok .
And other variables ... ?
 
Old 06-02-2010, 02:03 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
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?
 
Old 06-03-2010, 01:21 AM   #5
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
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 .
 
Old 06-03-2010, 01:39 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Is your X server compiled, running and configured?
 
Old 06-03-2010, 01:48 AM   #7
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
no .
have linux text editor without X11 ?

Last edited by mah454; 06-03-2010 at 01:50 AM.
 
Old 06-03-2010, 04:20 AM   #8
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Try emacs, vim,...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to copy specific directory based on variable to folder with that variable name fluxburn Programming 7 01-07-2010 07:59 PM
AWK a variable Ouptut to a new variable and using the new variable with the old one alertroshannow Linux - Newbie 4 02-16-2009 12:08 AM
Sed search for variable and delete entire line, but variable contains forward /'s Passions Programming 2 11-10-2008 03:44 PM
Help: removing a variable substring from a string variable in sh script gnparsons Programming 2 06-04-2008 05:21 PM
understand variable type in shell script qrshat Programming 5 09-09-2006 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration