Sample Header Ad - 728x90

How can I find the last 10 modified files

2 votes
3 answers
17224 views
I'm in the root folder and need to find the last 10 modified files of just this folder. Every time I put -mtime like my lecturer said I get 10 days. I need the last 10 modified files, not the last 10 days worth. I have tried find -my time, my time piped with tail. I get a long list of every modified file of the last 10 days. I need just the last 10 modified files of the root directory.
Asked by Samuel Mccartney (21 rep)
Oct 25, 2021, 08:23 AM
Last activity: Oct 22, 2024, 02:33 PM