Reputation:
After I finish to install ORACLE, then there is the step that I have to register some environment values. One of them is PS1.
export PS1=$'\\n[$LOGNAME@\h:$ORACLE_SID]'
Kind of an explanation is "User OS prompt setting variable".
I can't understand when it is used and the variable is also quite weird. Does anyone have an idea for it?
Upvotes: 0
Views: 260
Reputation: 526
"have to" - says who? It is not a mandatory requirement.
PS1 - The primary prompt string. The default value is ‘\s-\v\$ ’. See Controlling the Prompt, for the complete list of escape sequences that are expanded before PS1 is displayed.
\n - A newline.
\h - The hostname, up to the first '.'.
LOGNAME
(login name) and ORACLE_SID
are custom environment variables.
Upvotes: 1