Answer the question
In order to leave comments, you need to log in
How to count the number of deleted files?
Good afternoon comrade friends.
There is a command for deleting old files in a folder and subfolders:
is it possible to somehow display the number of files deleted? It's just that I will intercept the result in php, and for tests you need to understand. find /path/to/folder/* -mtime +2 -exec rm {} \;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question