I want to search for all files in the entire directory structure that have been modified in the past 10 days and display their type:
find / -mtime +10 -exec file {} \;
Will this command work or do I need any modification?
I want to search for all files in the entire directory structure that have been modified in the past 10 days and display their type:
find / -mtime +10 -exec file {} \;
Will this command work or do I need any modification?
You need to use the following command:
find /folder -type f -mtime -10 -print
Then adjust the rest of the command for your purposes.