Recently had a situation where we were trying to track down which files had been modified in the last 24 hours but needed to exclude the cache directory since it builds files often and for a large site sifting through this is time consuming.
The following command will show all files, recursively, that have been modified in the last 24 hours and exclude the cache directory.
user@machine> find . -not \( -path ./wp-content/cache -prune \) -mtime -1 -ls
Friday, April 7, 2017
Find All Files Modified In Last Day Excluding Path
Posted by Joseph at 10:26 PM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment