How Do I Find the Oldest Files in Linux?
Contents How Would You List Oldest File First and Newest One Last? Ls -Lt (What Rahul Used) Lists the Current Directory in Long Format in Order by Modification...
Contents
How would you list oldest file first and newest one last?
ls -lt (what Rahul used) lists the current directory in long format in order by modification date/time, with the newest first and the oldest last. ls -ltr is the reverse of that; oldest first and the newest last.
Must Read
How do I search for a file by date in Linux?
Say hello to -newerXY option for find command
- a – The access time of the file reference.
- B – The birth time of the file reference.
- c – The inode status change time of reference.
- m – The modification time of the file reference.
- t – reference is interpreted directly as a time.