1、以人熟悉的方式显示文件大小
ls -lh
2、查看时间
ls -lht --time-style=long-iso
ls -lht可以查看⽂件⼤⼩以M来显⽰
--time-style=long-iso 显⽰年⽉⽇时分
ls -l --time-style=full-iso 显⽰精确到毫秒
ls -l --time-style=iso
ls -l --time-style=locale 显⽰⽉⽇时分
3、按页查看结果
查看很多的结果集(按照页查看,,,)
ls -l | more
4、检索、匹配查看
(检索)查看 ?代表一个字符 *号代表多个字符
ls -l te?t
ls -l test*
(检索)查看 []使用中括号中的字符匹配
ls -l te[s]t
ls -l te[a-i]t 限定字母范围a-i
(检索)查看 !将不需要的内容排除
ls -l te[!a]t