2017-05-06 21 views
-2

enter image description here如何在Ubuntu中更改bash的顏色

我正在使用Ubuntu 16.04 VPS。我幾乎無法在屏幕截圖中閱讀bash中的深藍色打印。我如何修改bash中的顏色?

+0

顏色選擇應該是可配置的終端設置 – ccarton

+1

檢查了這一點,可能會有所幫助: https://askubuntu.com/questions/466198/how-do-i-change-the-color-for-directories-with-ls-in-the-console/466203#466203 – hmedia1

+0

這不是'bash'問題;它是'ls'程序可以輸出什麼顏色代碼以及你的特定終端如何解釋它們的組合。 – chepner

回答

1

改變顏色在終端設置 終端>首選項>配置文件>編輯>顏色

命令行:

nano ~/.bashrc 
#insert at the end, this will make your directory's red 
LS_COLORS=$LS_COLORS:'di=0;31:' ; export LS_COLORS 
#save file 
#restart terminal 
+0

謝謝,這是一個很大的幫助! – user61629