\e[1;31m 表示红色,\e[0m表示重置 echo -e "\e[1;31m this is \e[0m" 查看当前进程使用的环境变量 cat /proc/$PID/environ | tr '\0' '\n'