设置字体颜色

[root@localhost ~]# echo -e "\033[1mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[31mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[32mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[33mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[34mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[35mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[36mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[37mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[38mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[39mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[40mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[41mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[42mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[43mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[44mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[45mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[46mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[47mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[1mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[31mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[32mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[33mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[34mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[35mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[36mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[37mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[38mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[39mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[40mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[41mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[42mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[43mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[44mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[45mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[46mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[47mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[1mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[31mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[32mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[33mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[34mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[35mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[36mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[37mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[38mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[39mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[40mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[41mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[42mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[43mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[44mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[45mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[46mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[47mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[1mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[31mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[32mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[33mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[34mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[35mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[36mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[37mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[38mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[39mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[40mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[41mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[42mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[43mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[44mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[45mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[46mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[47mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[1mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[31mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[32mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[33mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[34mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[35mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[36mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[37mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[38mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[39mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[40mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[41mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[42mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[43mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[44mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[45mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[46mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[47mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[1mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[31mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[32mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[33mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[34mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[35mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[36mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[37mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[38mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[39mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[40mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[41mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[42mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[43mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[44mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[45mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[46mHello\033[0m,world."
Hello,world.
[root@localhost ~]# echo -e "\033[47mHello\033[0m,world."
Hello,world.

上一篇:python3 print() 函数带颜色输出 示例


下一篇:【Nginx】实现负载均衡、限流、缓存、黑白名单和灰度发布,这是最全的一篇了!