What is PS1 in Red Hat Linux?
Asked By
20 points
N/A
Posted on - 08/28/2012
I have seen PS1 in several places, Is this command or file or a variable? I am very confused about this; please help me …
I have seen PS1 in several places, Is this command or file or a variable? I am very confused about this; please help me …
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 = “u@h:w <!>$”