What Is $Ps1 in Linux?

What Is $Ps1 in Linux?
Contents

PS1 is a primary prompt variable which holds [email protected] W\$ special bash characters. This is the default structure of the bash prompt and is displayed every time a user logs in using a terminal.

What is PS1 and PS2 in Linux?

PS1: environment variable which contains the value of the default prompt. It changes the shell command prompt appearance and environment. PS2: environment variable which contains the value the prompt used for a command continuation interpretation. You see it when you write a long command in many lines.

What is PS1 terminal?

PS1 stands for “Prompt String One” or “Prompt Statement One”, the first prompt string (that you see at a command line).

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.