- How I can find the top ten most recently changed files in a folder?
How I can find the top ten most recently changed files in a folder?
Use the -t option of ls. Then pipe it to head which will display the top ten:
ls -lt | head
To find the oldest files:
ls -lrt | head
Copyright © 2008-2020, dave Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.