- LawsonAbs的认知与思考,不一定完善和准确,还请各位读者怀批判思维阅读。
- 持续更新
1.常用参数
-c 参数的作用是:按照文件的修改时间(术语就是ctime)来排序
-c with -lt: sort by, and show, ctime (time of last modification of file status
information); with -l: show ctime and sort by name; otherwise: sort by
ctime, newest first
-l 参数的作用是:展示出ctime,并按照文件名进行排序
-l use a long listing format
-t 参数的作用是:按照修改时间排序,最近修改到最晚修改
2.常用组合-t sort by modification time, newest first
根据上面三个参数可以得到许多种的配合:ls -clt
:根据 ctime 进行排序,并输出ctime等信息
ls -cl
: 根据name 进行排序,但是输出文件的ctime