In Unix/Linux shell scripting, PS3 is the special variable that sets the prompt string for the select command in interactive shell scripts. PS1 is the primary prompt, PS2 is the secondary prompt for continuation lines, and $$ (not PS3) gives the last background process ID.