How to change the terminal prompt display in Linux
Source: Internet
Author: User
In Linux, changing the display method of the terminal prompt is a piece of white before the modification. after changing the visual discomfort, the prompt changes to color, the modification method is more comfortable than before the modification to modify the file ~ /. Bash_profile, add this line to this file: exportPS1 & amp; #39; \ [\ e [... change the terminal prompt display method in Linux
Before modification
A piece of white, dazzling, will feel the visual discomfort
After modification:
No, the prompt color is changed. it is more comfortable than before modification.
Modification method
Modify file ~ /. Bash_profile, add this line to this file:
Export PS1 = '\ [\ e [0; 36m \] [\ t \ W] $-> \ [\ e [0m \]'
After the change, you need to re-open the terminal to take effect.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service