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

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

2、解决方法

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

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

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

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

4、测试效果

原文地址:https://www.cnblogs.com/liujiaxin2018/p/15442829.html