answersLogoWhite

0

What is PS1 in ubuntu?

Updated: 12/13/2022
User Avatar

Wiki User

11y ago

Best Answer

The same as in any other Linux distribution I'm ever seen (or Unix for that matter). Shell environment variable PS1 (referenced as $PS1 or even ${PS1}) contains the 'prompt' display format. It may be changed to suit individual tastes or preferences.

On my Mac Mini, it is currently:

PS1 = '\h:\W \u\$'

but it can be changed by issuing the command:

$ export PS1 = "whatever I put between these quotes"

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is PS1 in ubuntu?
Write your answer...
Submit
Still have questions?
magnify glass
imp