UNIX Environment
.profile / .bash_profile / .bashrc
.profile / .bash_profile / .bashrc
Show Environment for running Processes
Show Environment for running Processes
Linux
Linux
cat /proc/$(ps -ef | grep pmon | cut -d' ' -f2)/environ
Examples use Oracle pmon process, amend as necessaryAIX
AIX
ps eauwww $(ps -ef | grep pmon | cut -d' ' -f2)
Notes on specific variables
Notes on specific variables
TZ
TZ
Timezone
TZ
More Information
More Information
PS1
PS1
Default shell prompt.
Default is: $ (for normal users) or # (for root)
PS2
PS2
Continuation indicator when your command spans multiple lines.
Default is: >
PS3
PS3
Used by "select" command to prompt for input.
Default is: #?
PS4
PS4
Used by “set -x” to prefix tracing output.
Default is: ++
PROMPT_COMMAND
PROMPT_COMMAND
Bash executes the content of PROMPT_COMMAND just before displaying PS1.
Bibliography
Bibliography
https://unix.stackexchange.com/questions/88106/why-doesnt-my-bash-profile-work
https://www.thegeekstuff.com/2008/09/bash-shell-take-control-of-ps1-ps2-ps3-ps4-and-prompt_command/https://www.thegeekstuff.com/2008/09/bash-shell-ps1-10-examples-to-make-your-linux-prompt-like-angelina-jolie/
https://support.oracle.comHow to Check the Environment Variables for an Oracle Process (Doc ID 373303.1)