-2
A
回答
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
相關問題
- 1. 在bash中更改virtualenv顏色(Ubuntu)
- 2. 在Ubuntu中更改Monodevelop背景顏色
- 3. Ubuntu Bash的顏色 - 如何禁用顏色並使其變爲單色顏色?
- 4. 如何更改bash中的全局背景顏色
- 5. 如何在Netbeans中更改此顏色?
- 6. 如何在OpenGL中將顏色更改爲隨機顏色?
- 7. 如何更改光標顏色而不更改文字顏色?
- 8. 如何更改sbt顏色?
- 9. 如何更改ActionBar顏色
- 10. 如何更改createCircularReveal()顏色?
- 11. 如何更改layer.border.top顏色?
- 12. 如何更改CircularFillableLoaders顏色?
- 13. 如何更改CCTexture2D顏色
- 14. UNITY - 如何更改顏色?
- 15. 如何更改ActionBar顏色?
- 16. 如何更改UITabBar顏色?
- 17. UITableView如何更改顏色?
- 18. 如何更改ttk.Separator顏色
- 19. 如何更改JProgressBar顏色?
- 20. 如何更改顏色?
- 21. 如何更改顏色
- 22. 如何更改GroupStyle顏色?
- 23. 如何更改QIcon顏色?
- 24. raphael如何更改顏色
- 25. 如何更改JLabel顏色
- 26. 如何更改TabPanel顏色?
- 27. 如何更改UIAlertController的色彩顏色?
- 28. 如何更改JTable中的行顏色
- 29. 如何更改UIImagePicker中的欄顏色?
- 30. 如何更改AS3中的focusRect顏色?
顏色選擇應該是可配置的終端設置 – ccarton
檢查了這一點,可能會有所幫助: https://askubuntu.com/questions/466198/how-do-i-change-the-color-for-directories-with-ls-in-the-console/466203#466203 – hmedia1
這不是'bash'問題;它是'ls'程序可以輸出什麼顏色代碼以及你的特定終端如何解釋它們的組合。 – chepner