Modify the font color of the Debian terminal-Linux Release Technology-Debian information. See the following for details. Because the terminals are black by default, they can also change color. In addition, after the color change, not only can play a beautifying role, but also can protect your eyesight.
Steps:
1. display the color font on the terminal
After the Debian system is installed by default, you will find that the ls command does not contain parameters and colors are not displayed. You can add the -- color parameter to display the color.
$ Ls -- color
2. Modify the. bashrc File
It is easy to add parameters every time. The best way is to write them to the default configuration file. bashrc, which is located in the user directory.
$ Nano ~ /. Bashrc
Code:
# Enable color support of ls and also add handy aliases
If ["$ term "! = "Dumb"]; then
Export LS_OPTIONS = '-- color = auto'
Eval "'dircolor '"
Alias ls = 'ls $ LS_OPTIONS'
Fi
Remove the default comment, save and exit, open a terminal again, and run the ls command to see the color 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