2017-05-06 54 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