up previous next contents
Next: Aliases Up: The Korn Shell Previous: Background   Contents

Your Prompt

The ksh uses two "environment variables" to define your system prompt, PS1 and PS2. The value of PS1 is the prompt you will normally see. PS2 is the prompt you will see if your command line is extended to more than one line.

The default system prompt (for PS1):

$

Changing your prompt is very simple:

$  PS1='yes, master: >    (set your prompt variable)
yes, master: _

yes, master: PS1='\$PWD> ' (set your prompt variable again)
/home/aja1> _


up previous next contents
Next: Aliases Up: The Korn Shell Previous: Background   Contents