Linux: list the files and folders in a directory by date

How to list the files and folders in a directory by date

You're on Linux and want to list files by date

For this, we use the "ls" command, which comes from "list"

ls -t

The "t" ("time") option sorts by modification date

Sorting files by descending date

ls -tr /monrepertoire

The -r option sorts in reverse order ("reverse")

Have a web project in mind?

Website design, e-commerce or SEO: our web agency in Paris, Besançon and Normandy can help.

Free quote

Related articles