env

From Initq

Jump to: navigation, search

Displays your Unix environment variables. You can type env to get a list of all your environment variables. Other environment variables include:

  1. USERNAME
  2. HOSTNAME
  3. LOGNAME
  4. MAIL
  5. EDITOR - Specifies the editor to be used by default for some commands such as edquota. 
     Usually it is set to vi or emacs with a command like "export EDITOR=emacs".
  6. TERM - The type of terminal being used.
  7. PATH - The path the system looks in to find commands that the user has entered.
  8. HOME - The current user's home directory
  9. SHELL - The current shell program that is being executed
 10. USER - The name of the current user.
 11. TMPDIR - Allows programs that use the tempnam(3) function call to use the directory specified 
     by this variable rather than the /tmp directory.
 12. SHLVL - Shows how many shells the user has invoked. 

SHLVL indicates how many shells deep the user is.

 [alibaba@ohnonono etc]$ echo $SHLVL
 1
Personal tools