environ(5) File Formats Manual environ(5)NAME
environ - User environment
extern char **environ;
An array of strings called the environment is made available by the execve() function when a process begins. By convention these strings
have the form name=value. The following names are used by various commands: A startup list of commands read by ex, edit, and vi. A user's
login directory, set by login from the password file passwd. The sequence of directories, separated by colons, searched by csh, sh, sys-
tem, execvp, etc, when looking for an executable file. PATH is set to :/usr/ucb:/bin:/usr/bin initially by login. The name of the default
printer to be used by lpr, lpq, and lprm. The full pathname of the user's login shell. The kind of terminal for which output is to be
prepared. This information is used by commands, such as nroff which may exploit special terminal capabilities. The string describing the
terminal in the TERM environment variable, or, if it begins with a / (slash), the name of the termcap file. See TERMPATH below. A sequence
of pathnames of termcap files, separated by colons or spaces, which are searched for terminal descriptions in the order listed. Having no
TERMPATH is equivalent to a TERMPATH of $HOME/.termcap:/etc/termcap. TERMPATH is ignored if TERMCAP contains a full pathname. The login
name of the user.
Further names may be placed in the environment by the export command and name=value arguments in sh, or by the setenv command if you use
csh. It is unwise to change certain sh variables that are frequently exported by files, such as MAIL, PS1, PS2, and IFS.
Functions: exec(2), system(3)
Commands: csh(1), ex(1), login(1), sh(1)environ(5)
Check Out this Related Man Page
environ(7) Miscellaneous Information Manual environ(7)Name
environ - user environment
extern char **environ;
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:
See Alsocsh(1), ex(1), login(1), sh(1), execve(2), system(3), termcap(3x), passwd(5), termcap(5)environ(7)
I'm trying to locate all files that do not contain the string /usr but do contain the string csh within the file called /etc/passwd. Then I would like to direct this output to a file called pout.
Does anyone one have suggestions on this one?
Thanks (2 Replies)
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
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)
A coworker of mine has written a csh script that starts with #!/usr/bin/csh -f. It's my understanding that the -f should skip the .cshrc and .login files, but here's the problem: In the script "line" is used, and I happen to have a "line" in my ~/bin. When the script is ran my... (4 Replies)
I m asking a general question... thought I never faced and used this (PS3) variable... or may be i m not aware of this...
I know very well about the unix prompt string variables PS1,PS2,PS4.
but please tell me what is the use of PS3 and where it's used.
I didnt find... (5 Replies)
I was wondering how to change the PS1 to my liking?
I tried changing it using PS1='my choice'
it worked but the subsequent terminals i open will not have it as the default PS1 ,how do i change it?
also i am running as super user, and i need to exec bash, to get the bash environment...... (4 Replies)
Any help developing a command to find all files on the system named ".bashrc" that modify the PS1 variable. I wanna list the full file name, including the full path, and protection. Nothing else. (2 Replies)
I wrote two small scripts to set env variables in a shell.
setenv JAVA_HOME '/scratch/software/jdk1.5.0_11'
setenv PATH $PATH':'$JAVA_HOME'/bin'
and run it using csh ./java_env.csh
But the env variables are not set. I tried running each line on the... (5 Replies)
I would like to simply read a file which lists a number of pathnames and files, then search and replace key strings using a few vi commands:
but I am not sure how to automate the <return> of these vis commands when I am putting this in a... (8 Replies)
I need to read pdf files copied in a unix directory.I tried using the for loop with find command but the file names is cutting off at the spaces.Below is the code I tried.
for FILENAME in `find $DIR_FILE/ -name "*.pdf" -mindepth 1 -maxdepth 1 -mmin +60 ` ##Needs to be changed later +60 to -60
do... (4 Replies)
I have a file that contains a list of files, that i am trying to pass to EGREP for analysis...however files that contain werid characters such as spaces and colons get broken up into two pieces and it fails.
I create this list by running the find command
sudo find / print -type f >> Filelist
... (3 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)