终端里的路径颜色
Tofloor
poster avatar
plmm4510
deepin
2018-01-10 22:20
Author
终端里的路径颜色,绿色和蓝色有什么区别啊??
Reply Favorite View the author
All Replies
avatar
cuixiaofei
deepin
2018-01-10 22:34
#1
这些颜色都是可以自定义的可以自己设置不同位置的颜色。如你提到的,蓝色的是当前目录,绿色的是你键入的内容都显示一个颜色。你可以百度prompt的设置自己学着看看。
Reply View the author
avatar
aida
deepin
2018-01-10 22:35
#2
. etc/profile已经不是路径了,就是一个命令。
Reply View the author
avatar
plmm4510
deepin
2018-01-10 22:49
#3
https://bbs.deepin.org/post/151531
这些颜色都是可以自定义的可以自己设置不同位置的颜色。如你提到的,蓝色的是当前目录,绿色的是你键入的内 ...

我想设置一个永久生效的  alias ll='ls -l',就把这一行加进了/etc/profile,而且执行了  . /etc/profile,但是没有用啊啊。
Reply View the author
avatar
187******09
deepin
2018-01-10 22:56
#4
https://bbs.deepin.org/post/151531
我想设置一个永久生效的  alias ll='ls -l',就把这一行加进了/etc/profile,而且执行了  . /etc/profile ...

source /etc/profile
Reply View the author
avatar
cuixiaofei
deepin
2018-01-10 22:58
#5
本帖最后由 cuixiaofei 于 2018-1-10 15:01 编辑
https://bbs.deepin.org/post/151531
我想设置一个永久生效的  alias ll='ls -l',就把这一行加进了/etc/profile,而且执行了  . /etc/profile ...

楼上正解,另外这个alias也可以放在.bashrc里面,这个是如何配置bashrc和alias的问题,自行百度,另外linux基础知识请阅读《鸟哥的私房菜》看看linux基础,。
Reply View the author