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)
Check Out this Related Man Page
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)
Hi,
Happy new year.
Would you be so kind to explain me what does this instruction :
find /rep/app -type l -exec ls -l {} \;> allink.lst
Many thanks. (2 Replies)
hi,
i am getting error while executing the follwoing command.
/usr/local/bin/ssh2 user@hostname find /test/DeleteFile -mtime +10 -exec rm {} \;
error is :
find: 0652-018 An expression term lacks a required parameter.
it is deleting the files from the specified location. it is working... (2 Replies)
Hi,
I'm using the following command to get a list of files on the system.
find /releases -type f -exec ls -l > /home/sebarry/list.txt '{}' \;
however, its searching a directory I don't want it to search so I know I have to use prune but I don't seem to be able to get prune and exec to work... (2 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)
Hi
I have set PS1 in my profile as -
PS1='${LOGNAME}@${PWD}>' ; export PS1
it works fine if I am in bash/ksh shell, but as soon as i switch to bourn shell (sh) then it shows "${LOGNAME}@${PWD}>" as prompt.
It is also not working in csh.
Please help. (3 Replies)
Hello,
I have the following command at the "Shell":
export PATH=${PATH}:${ANT_HOME}/bin
I know what "export" does and the ANT_HOME part. But, regarding the following part:
${PATH}
What is "PATH" Supposed to be here. In other words, what is the value of "PATH".
As far as for... (4 Replies)
When I "echo $PATH" in terminal, I can see the PATH information.
And if I use export command to add a new path into $PATH, it also works.
I was just wondering, is there any file in MAC OS X, which include this $PATH variable? I mean we have to store $PATH in some place...
Anyone knows, pls... (6 Replies)
PATH is an environment variable.
When I open a terminal say terminal 1 and set some path in PATH variable it gets set which I can see using ech $PATH.
But when I open a new terminal say terminal 2 and fire echo $PATH why cannot I see the same output as seen in terminal terminal 1?
Why the path... (4 Replies)
Hi,
I am using Unix, I have added below in the .profile to change my prompt value.
PS1=`logname`@`hostname`:$PWD#
The problem is, after changing the directory, path is not being refreshed. Is there anything wrong?
Thanks,
Milind (2 Replies)
I am running AIX 6.6.5.115 and am experiencing a problem using sudo. I have shell scripts that I created for our HR user and shell scripts that I created for root administrators. I do have a need to embed a sudo command in the user shell script to run one command as root. However the two... (8 Replies)
Hello... and thank you in advanced for any help anyone can offer me
I'm hoping someone can explain what the leading $ is/means (i.e. $PS1, $HOME, etc).... I was having a discussion with someone and was trying to explain it... Which I felt like I came up kind of short with how well I did it.
... (12 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)