📜  linux 中的 $PS1 - 4 是什么 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:45.995000             🧑  作者: Mango

代码示例1
PS1    The value of this parameter is expanded and used as the primary prompt string.  
PS2    The value of this parameter is expanded as with PS1 and used  as
       the secondary prompt string.  The default is ``> ''.
PS3    The value of this parameter is used as the prompt for the select
       command 
PS4    The value of this parameter is expanded  as  with  PS1  and  the
       value  is  printed  before  each command bash displays during an
       execution trace.  The first character of PS4 is replicated  mul-
       tiple  times, as necessary, to indicate multiple levels of indi-
       rection.  The default is ``+ ''.

@Zenonymous