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](https://dade2.netwp-content/uploads/2021/10/Screenshot-2021-10-06-082026.png)
as you Can see in this List images listed From 2018 in Top.
For descending List :
# ls -lt