ls – How to sort files by date…

How to display newer files at the bottom of the ls output in Linux or Mac: 

ls -latr

  • l
    Long list with more details
  • a
    Include hidden files
  • t
    Sort by date descending
  • r
    Reverse sort order

Leave a Reply

Your email address will not be published. Required fields are marked *

Enter Captcha Here :