Linux – Bash find command verbose output

bashfindlinux

Is there way to tell the bash find command to output what it is doing (verbose mode)?

For example for the command:
find /media/1Tb/videos -maxdepth 1 -type d -mtime +7 -exec rm -rf {} \; to output:

Found /media/1Tb/videos/102, executing rm -rf /media/1Tb/videos/102
...

Best Answer

You could concoct something with -printf, but the easiest is just to tack on -print on the end. This will show what was successfully deleted.