linux之定制化登录时候的输出

vim /etc/profile

然后添加一下代码:

RED='\033[0;31m'
NONE='\033[0m'  # reset colour attribues
printf "${RED}This is in red ${NONE}\n"

 

posted @ 2023-06-20 13:45  Shiyu_Huang  阅读(14)  评论(0编辑  收藏  举报