How can I sort the files in my download folder in the order of the date of download?
My OS is Ubuntu 14.10, and I am using Nautilus - Files 3.10.1.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI believe Date Modified would pretty much be the same as the date downloaded. View > List > Click on Date Modified
ls -l
shows that the timestamp on the file was updated at the time of download. This timestamp corresponds to Date Modified in the file browser. However wget
preserves the original timestamp. When I download a file with wget
Date Accessed does show the download date. So, my answer works if you've just downloaded from the browser. But, if you've downloaded with the browser and a tool like wget
to a directory then Date Accessed is the best sort column to show the most recently downloaded files.
If you just want to see the files (not parse the file names), you can use
ls -t
The last file printed is the eldest. To print the newest last, use
ls -tr
From man ls
:
-t sort by modification time, newest first
-r, --reverse
reverse order while sorting
If you want to parse these file names or somehow pass them to another program, you should not use ls
since there are various issues associated with parsing its output. Bad handling of spaces in file names is the classic problem. If you need to parse these file names, edit your question and I can provide a solution depending on what exactly you need to do.
For me the "modified date" was wrong for newly downloaded files. Instead I am using the "accessed date" and it is correct.
ls
or a graphical file manager like Nautilus?