env Show all the environment
variables.
Usage: env
Some Environment variables:
HOME : home directory
PATH: search path for commands
TERM: terminal type
USER: username
DISPLAY: the name of the machine to which the display is
sent.
SHELL: the current shell
PWD: the current directory.
EDITOR : the default text editor
printenv Show all or specified environment variable.
Usage: printenv
printenv <variable-name> will print only this
variable
setenv Sets a particular
environment variable.
Usage: setenv <variable-name> <value>
Eg: setenv EDITOR emacs.
setenv DISPLAY bernini.arc.cmu.edu:0.0
No comments:
Post a Comment