By default, shell prompt is displayed hostname and current working directory.
It is composed of some variables called:

  • PS1 – default value is \s-\v\$ .
  • PS2 – default is >
  • PS3 – is used as the prompt for the select command
  • PS4 – default is + and value of this parameter is expanded a to indicate multiple levels of indirection

Prompt is control via a special shell variable.y default, shell prompt is displayed hostname and current working directory.

Here’s how to set the default value:

The result will be:

This is just an example.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.