I added a line to $HOME/.profile
just for interest.
echo ${TERM:-"\$TERM isn't set."} > $HOME/term/.profile
After the next login, I saw a word dumb
in $HOME/term/.profile
.
$ cat term/.profile
dumb
Then I opened gnome-terminal
and typed echo $TERM
. The result was xterm
.
$ echo $TERM
xterm
When is $TERM
replaced from dumb
to xterm
?
I know there are some similar questions and saw them, but I couldn't understand them enough for finding the answer.
There is neither .bash_profile
nor .bash_login
in $HOME
.
And this is who
command's output:
$ who am i
cul8er pts/1 2015-11-25 05:31 (:0)
OS: Ubuntu 15.04.
.profile
.TERM=dumb
. I'm not sure what you're asking here.