Ls sort by time output file list first, ls -- help to view ls-related time sorting parameters:> ls -- help | grep-E "time | sort" If-cftuSUX or -- sort is not specified, it is sorted by letter size. -C combination-lt: Sorting by ctime and displaying ctime (File combination-l: displaying ctime But sorting by name; otherwise: Sorting by ctime-f do not sort, enable-aU, disable-lst -- full-time like-l -- time-style = full-iso-r, -- reverse order while sorting-S sort by file size -- sort = WORD extension-X, none-U, size-S, time-t, version-v, status-c, time-t, atime-u, -- time = WORD with-l, show time as WORD instead of modification time: atime, access, us E, ctime or status; use specified time as sort key if -- sort = time -- time-style = STYLE with-l, show times using style STYLE: -t sort by modification time you can see that-c is sorted by creation time ctime,-t is sorted by modification time mtime. by default, most recent files are ranked first, and-r can be sorted in reverse order, sort the latest files to the backend. -- sort = WORD can be used to sort key values. Common combinations:> ls-alt # sort by modification time> ls -- sort = time-la # equivalent to> ls-alt> ls-ALB # sort by creation time> ls-alu # sort by access time sorting # The preceding steps can be sorted in reverse order by-r> ls-alrt # sort by modification time> ls -- sort = time-lra # is equivalent to> ls-alrt> ls-alrc # sort by creation time> ls-alru # sort by access time # You can also find files of the specified type, then specify sort by time> find. -name *. php | xargs ls-alt