What is PS1 in Red Hat Linux?

Asked By 20 points N/A Posted on -
qa-featured

I have seen PS1 in several places, Is this  command or file or a variable? I am very confused about this; please help me …

SHARE
Answered By 0 points N/A #133237

What is PS1 in Red Hat Linux?

qa-featured

Hi Yency,

The PS1 is a local variable,

PS1 variable sets the prompt that prompt can vary,
each time it is displayed by using special escaped
sequences .

These are includes….

w  the current working directory
h  short host name
$  privileged user
t  the current time
u  user name
!  the history number of the current

command.
d  the data
#  super user

# Ps1 = “[email protected]:w <!>$”

Login/Register to Answer

Related Questions