environ(7) Miscellaneous Information Manual environ(7)Name
environ - user environment
Syntax
extern char **environ;
Description
An array of strings, called the environment, is made available by when a process begins. By convention, these strings have the form
``name=value''. The following names are used by various commands:
PATH The sequence of directory prefixes that and apply in searching for a file known by an incomplete path name. The prefixes are sepa-
rated by a colon (:). The command sets
HOME A user's login directory, set by from the password file
TERM The kind of terminal for which output is to be prepared. This information is used by commands, such as or which may exploit spe-
cial terminal capabilities. See in for a list of terminal types.
SHELL The file name of the user's login shell.
TERMCAP The string describing the terminal in TERM or the name of the termcap file. For further information, see and
EXINIT A startup list of commands read by and
USER The login name of the user.
PRINTER The name of the default printer to be used by and
Further names may be placed in the environment by the command and ``name=value'' arguments in or by the command if you use Arguments can
also be placed in the environment at the point of an It is unwise to conflict with certain variables that are frequently exported by files:
and
See Alsocsh(1), ex(1), login(1), sh(1), execve(2), system(3), termcap(3x), passwd(5), termcap(5)environ(7)
Check Out this Related Man Page
ENVIRON(7) Miscellaneous Information Manual ENVIRON(7)NAME
environ - user environment
SYNOPSIS
extern char **environ;
DESCRIPTION
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 names are used by various commands:
PATH The sequence of directory prefixes that sh, time, nice(1), etc., apply in searching for a file known by an incomplete path name.
The prefixes are separated by `:'. Login(1) sets PATH=:/usr/ucb:/bin:/usr/bin.
HOME A user's login directory, set by login(1) from the password file passwd(5).
TERM The kind of terminal for which output is to be prepared. This information is used by commands, such as nroff or plot(1G), which
may exploit special terminal capabilities. See /etc/termcap (termcap(5)) for a list of terminal types.
SHELL The file name of the users login shell.
TERMCAP The string describing the terminal in TERM, or the name of the termcap file, see termcap(5),termcap(3X).
EXINIT A startup list of commands read by ex(1), edit(1), and vi(1).
USER The login name of the user.
PRINTER The name of the default printer to be used by lpr(1), lpq(1), and lprm(1).
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). Arguments may also be placed in the environment at the point of an execve(2). It is unwise to conflict with certain sh(1)
variables that are frequently exported by `.profile' files: MAIL, PS1, PS2, IFS.
SEE ALSO csh(1), ex(1), login(1), sh(1), execve(2), system(3), termcap(3X), termcap(5)4.2 Berkeley Distribution May 20, 1985 ENVIRON(7)
:confused:
I've conducted a search of the board to see if this question had been previously answered to avoid taking up the boards time.
As a New User, would you reccomend starting with C or Unix? (2 Replies)
hi guys,
just went thru a "how to" manual on Solaris CDE....
could any of you pleaz tell me how to restrict users from logging in at
particular times....
in linux,i wrote an access script, put in in /etc/profile and was able t o
restrict users from logging in at particular times on particular... (7 Replies)
I have been resently working on some ksh script. One of the line in the file writes:
.. /etc/.environment dev_env
I can not understand what this mean, all I know is .environment is unix system environment file. Is ".." a command? If some one can give me some clue where can I find information... (7 Replies)
Hi, I need some help with the follow questions :(. Any help would be great!
Answer with the necessary commands
1. In your login directory, make a directory called week4/revision
2. Without changing directories, make another directory week4_revision/data
3. Change to week4_revision/data... (2 Replies)
Hi All,
I want to login to CVS using terminal. I am executing the following command in the terminal :-
export CVSROOT=: pserver:ags_rd@istcvs.corp.apple.com:/istcvs/CVSHOME
cvs login
But i get the following error :
Afreens-iMac:buildTest Afreen$ export CVSROOT=:... (1 Reply)
Hi,
How to get the FreeBsd system hardware and software basic information using terminal command with guest login?
Here below i have specified some of the information i need. Please have a look at this and guide me.
OS Name:
OS Version :
OS Manufacturer:
OS... (2 Replies)
I need your's help to display user with greep command form /etc/passwd
1. to display all login to begin and finishing with letter a or b
etc.users
admina
bserb
broota
2. beginning and finishing with the same sign
etc. users
aghata:....
roootr:....3. to contain what the least three... (1 Reply)
Hi guys,
I am kind of new to this PowerVM thing.
I have created a virtual disk and partition.
With the IVM, when I try to open terminal wndow, a virtual terminal appeared and ask for password.
it says there:
In order to acess the terminal, you must first authenticate with IVM
Hostname... (2 Replies)
I'm trying to grab a list of file names from a directory, then process those files 5 at a time. In the link below. Instead of using files I'm using the files array which contains 15 strings starting with AAA.
So I'm trying to assign $fileset 5 of the strings at a time to pass to a command. So... (4 Replies)
Hello... and thanks in advance for any help anyone can offer me with my question! I'm hoping someone will have a little patience with me and walk me through this!
I'm trying to understand a user login process on Centos 7 and I've gotten a bit confused trying to figure out when/how a Gnome... (4 Replies)