Ls sort by time output file list first, ls -- help to view ls-related time-ordered parameters: & gt; ls -- help | grep-E & quot; time | sort & quot; If-cftuSUX or -- sort is not specified, it is sorted by letter size. -C... 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
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.