Ls sort by time output file list

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.