| ENVIRON(7) | Miscellaneous Information Manual | ENVIRON(7) |
environ — user
environment
extern char **environ;
An array of strings called the “environment” is made available by execve(2) when a process begins. By convention these strings have the form name=value. The following variables are recognized by various commands:
BLOCKSIZEEXINITHOMELOGNAMEPATH_PATH_DEFPATH by
login(1), traditionally
/usr/bin:/bin, but expanded to include
/usr/sbin, /sbin,
/usr/X11R6/bin,
/usr/local/bin, and
/usr/local/sbin in
OpenBSD.PRINTERPWDSHELLTERMTERMCAPTERM, or, if
it begins with a ‘/’, the name of
the termcap file. See TERMPATH below,
termcap(5), and
termcap(3).TERMPATHTERMPATH is equivalent to a
TERMPATH of
$HOME/.termcap:/etc/termcap.
TERMPATH is ignored if
TERMCAP contains a full pathname.TMPDIRTZenv TZ=America/Los_Angeles
date displays the current time in California. See
tzset(3) for more
information.USERLOGNAME (for backwards
compatibility).Further names may be placed in the environment by the
export command and
name=value arguments in
sh(1), or by the
setenv command if you use
csh(1). It is unwise to change
certain sh(1) variables that are
frequently exported by .profile files, such as
MAIL, PS1,
PS2, and IFS, unless you
know what you are doing.
The current environment variables can be printed with env(1) or printenv(1).
csh(1), env(1), ex(1), login(1), printenv(1), sh(1), execve(2), execle(3), getenv(3), system(3), termcap(3), tzset(3), termcap(5)
An environ manual page appeared in
Version 7 AT&T UNIX.
| February 9, 2020 | openbsd |