environ(5) File Formats Manual environ(5)NAME
environ - User environment
SYNOPSIS
extern char **environ;
DESCRIPTION
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.
SEE ALSO
Functions: exec(2), system(3)
Commands: csh(1), ex(1), login(1), sh(1)environ(5)
Check Out this Related Man Page
ENVIRON(5) File Formats Manual ENVIRON(5)NAME
environ - user environment
SYNOPSIS
extern char **environ;
DESCRIPTION
An array of strings called the `environment' is made available by exec(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=:/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(1), which may
exploit special terminal capabilities. See term(7) for a list of terminal types.
Further names may be placed in the environment by the export command and `name=value' arguments in sh(1), or by exec(2). It is unwise to
conflict with certain Shell variables that are frequently exported by `.profile' files: MAIL, PS1, PS2, IFS.
SEE ALSO exec(2), sh(1), term(7), login(1)ENVIRON(5)
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)
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)
Hey everyone,
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)
Hello frnds...
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)
Hi all,
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)
Is there a command for finding all files on the system named ".bashrc" that modify the PS1 variable? I'd like to list the full file name(s) and the protection (including the full path). (5 Replies)
Hi,
I wrote two small scripts to set env variables in a shell.
java_env.csh
#!/bin/csh -fn
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)
Hi all,
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:
:1,$s/search_str/replace_str/g<return>
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)