Команда env

Displays your Unix environment variables.

Синтаксис

env

Примеры

env - Typing env at the prompt would give something similar to.

HOME=/computerhope/public_html
PATH=/usr/local/bin:
LOGNAME=admin
HZ=100
TERM=vt100
TZ=MST7MDT
SHELL=/bin/csh
MAIL=/var/mail/computerhope
_INIT_UTS_PLATFORM=SUNW,SPARCstation-10
_INIT_UTS_RELEASE=5.7
_INIT_UTS_SYSNAME=SunOS
_INIT_UTS_VERSION=Generic_106541-08
EDITOR=pico -t
OPENWINHOME=/usr/openwin
MANPATH=/usr/man:/usr/local/man:/usr/openwin/man
LD_LIBRARY_PATH=/usr/local/lib:/usr/openwin/lib
PAGER=more

Above is a wide variety of information. Below is brief description of each of the more commonly listed environment variables.

 

EDITORName of editor used.
HOMEThe directory that you are first logged into.
SHELLThe program you run as your command-line interpreter.
TERMThe type of terminal emulation used.
PATHListing of directories searched when logging on.
MAILLocation of where the mail is stored
MANPATHLocation of your Manuals. See man command.
LOGNAMEThe login name.
TZTime zone of computer

Обратно к списку команд