1ENVIRON(7)             Miscellaneous Information Manual             ENVIRON(7)
2
3
4

NAME

6       environ - user environment
7

SYNOPSIS

9       extern char **environ;
10

DESCRIPTION

12       An  array  of  strings  called  the  `environment' is made available by
13       execve(2) when a process begins.  By convention these strings have  the
14       form `name=value'.  The following names are used by various commands:
15
16       PATH    The  sequence  of  directory  prefixes  that sh, time, nice(1),
17               etc., apply in searching for a file known by an incomplete path
18               name.   The  prefixes  are  separated  by  `:'.   Login(1) sets
19               PATH=:/usr/ucb:/bin:/usr/bin.
20
21       HOME    A user's login directory, set by  login(1)  from  the  password
22               file passwd(5).
23
24       TERM    The  kind of terminal for which output is to be prepared.  This
25               information is used by commands, such  as  nroff  or  plot(1G),
26               which   may   exploit   special   terminal  capabilities.   See
27               /etc/termcap (termcap(5)) for a list of terminal types.
28
29       SHELL   The file name of the users login shell.
30
31       TERMCAP The string describing the terminal in TERM, or the name of  the
32               termcap file, see termcap(5),termcap(3X).
33
34       EXINIT  A startup list of commands read by ex(1), edit(1), and vi(1).
35
36       USER    The login name of the user.
37
38       PRINTER The  name  of the default printer to be used by lpr(1), lpq(1),
39               and lprm(1).
40
41       Further names may be placed in the environment by  the  export  command
42       and  `name=value'  arguments  in sh(1), or by the setenv command if you
43       use csh(1).  Arguments may also be placed in  the  environment  at  the
44       point  of  an  execve(2).   It is unwise to conflict with certain sh(1)
45       variables that are frequently exported by `.profile' files: MAIL,  PS1,
46       PS2, IFS.
47

SEE ALSO

49       csh(1),  ex(1),  login(1),  sh(1),  execve(2),  system(3), termcap(3X),
50       termcap(5)
51
52
53
544.2 Berkeley Distribution        May 20, 1985                       ENVIRON(7)
Impressum