0.总结
  • 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 参数的作用是:按照修改时间排序,最近修改到最晚修改

-t sort by modification time, newest first

2.常用组合

根据上面三个参数可以得到许多种的配合:
ls -clt:根据 ctime 进行排序,并输出ctime等信息
Linux命令详解之ls命令_Linux

ls -cl: 根据name 进行排序,但是输出文件的ctime
Linux命令详解之ls命令_Linux_02