• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unix novice question - PS1 and PS2  RSS feed

 
Bala Krishna
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know what PS1 and PS2 stand for, but what is their significance? I mean, what do we use PS2 for?
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PS2 is the secondary prompt. When a command continues on a subsequent line, the prompt that shows continuation is the value of PS2. Here's an example:
 
Bala Krishna
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your answer Michael.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!