user151122
user151122

Reputation:

The oracle profile variable, PS1

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

Answers (1)

Balazs Papp
Balazs Papp

Reputation: 526

"have to" - says who? It is not a mandatory requirement.

5.1 Bourne Shell Variables

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.

6.9 Controlling the Prompt

\n - A newline.
\h - The hostname, up to the first '.'.

LOGNAME (login name) and ORACLE_SID are custom environment variables.

Upvotes: 1

Related Questions