測試環境為 CentOS Stream 9(虛擬機)
參考文章 Turn off color in Linux terminal/bash session – https://www.cyberciti.biz/faq/turn-off-color-in-linux-terminal-bash-session/
Linux Termianl 會依據 TERM – https://www.gnu.org/software/gettext/manual/html_node/The-TERM-variable.html 來顯示顏色
實在不方便看.
[root@localhost ~]# echo "$TERM" xterm-256color
改成 TERM=xterm-mono 即可.
[root@localhost ~]# export TERM=xterm-mono
寫到 ~/.bashrc 檔案下次登入就直接生效.
[root@localhost ~]# echo 'export TERM=xterm-mono' >> ~/.bashrc
沒有解決問題,試試搜尋本站其他內容