Best Answer: What Is Ps2 in Linux?
Contents

What is PS2 terminal?

PS2 – Continuation interactive prompt

A very long unix command can be broken down to multiple line by giving at the end of the line. The default interactive prompt for a multi-line command is “> “.

What does the PS2 variable do?

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.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest