How do I change the prompt in Ubuntu?

How do I change the prompt in Ubuntu?
Answer
By default, Ubuntu sets the prompt to “
[email protected]
:directory$” but you can change it to anything you want by redefining environment variable PS1. To see how it works, open a terminal window and type “PS1=what?” then hit enter.
 

Tìm kiếm

Back
Top