linux系统中目录和普通文件无法使用颜色区分解决方法

 

1、问题, 命名是目录,却无法通过颜色识别

 

 

 

2、解决方法

root@PC1:/test# vim /etc/profile

在配置文件末尾添加ls命令别名,保存退出

 

 

 

3、使用source命令使其立即生效

root@PC1:/test# source /etc/profile

 

4、测试效果

 

posted @ 2021-10-23 11:44  小鲨鱼2018  阅读(296)  评论(0编辑  收藏  举报