$ ls -t OR $ ls -tr To list files or directories and sort by last modified date, use the -t option. To reverse the sorting order, use the -r parameter as follows: ls -tr: