UNIX Environment

.profile / .bash_profile / .bashrc

Show Environment for running Processes

Linux

cat /proc/$(ps -ef | grep pmon | cut -d' ' -f2)/environ

Examples use Oracle pmon process, amend as necessary

AIX

ps eauwww $(ps -ef | grep pmon | cut -d' ' -f2)

Notes on specific variables

TZ

Timezone

TZ

More Information

PS1

Default shell prompt.

Default is: $ (for normal users) or # (for root)

PS2

Continuation indicator when your command spans multiple lines.

Default is: >

PS3

Used by "select" command to prompt for input.

Default is: #?

PS4

Used by “set -x” to prefix tracing output.

Default is: ++

PROMPT_COMMAND

Bash executes the content of PROMPT_COMMAND just before displaying PS1.