How Can sort “ls” output by date ascending or descending in Linux

In this tutorial, we will look at a practical challenge in the Linux command line: how to output the ls command to the time of editing or creating a file. I have a directory with too many of images on there, I want to list them by time :

For ascending List :

# ls -ltr
How Can sort "ls" output by date ascending or descending in Linux
How Can sort “ls” output by date ascending or descending in Linux

as you Can see in this List images listed From 2018 in Top.

For descending List :

# ls -lt

 

Powered by BetterDocs