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

 

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

 

 

 

2、解决方法

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

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

 

 

 

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

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

 

4、测试效果

 

相关文章

Centos系统之Shell编程基础知识
从Export理解Shell环境和变量生存期
linux shell数组变量、类型及规则
Centos编程Shell基本工作原理方案
Centos操作系统编程之Shell 问答录
rsync-linux备份脚本