To get the list of all files based on last access time, use the following command- $ ls -ltuĭrwxr-xr-x 3 linux linux 4096 Mar 8 14:00 Downloadsĭrwxr-xr-x 8 root root 4096 Mar 8 11:18 linux-dash rw-r-r- 1 linux linux 8980 Feb 19 10:55 sktop List Files Based on Last Access Time Lrwxrwxrwx 1 linux linux 37 Feb 27 13:25 PlayOnLinux's virtual drives -> /home/linux/.PlayOnLinux//wineprefix/
The sample output should be like this – total 322428ĭrwxr-xr-x 3 linux linux 4096 Mar 8 13:59 Downloadsĭrwxr-xr-x 6 linux linux 4096 Mar 3 14:34 Desktop The below command shows the list of files along with format, sorts files based on modification time and newest file first. The list command shows a list of files, directories, information about date and time of modification or access, permissions, size, owner, group etc. This article describes “How to Find and Sort Files Based on Modification Date and Time in Linux”. There are simple commands which are available in Linux to search a modified file. Normally desktop looks like a mess but the problem arises when users want to search a modified file on a particular date or time.
While working with computers, we have a habit of saving a lot of information in our computers such as files, folders, etc.