I am am trying to run the below command to delete tmp folders greater than 3 minutes using the below:
find /tmp/tmp* -mmin +3 -exec rm -rf {} \;
The above command fails. Why?
find /tmp/tmp* -mmin +3 -exec rm -rf {} \;
find: `/tmp/tmpAJaHLX/crashes': No such file or directory
find: `/tmp/tmpbM5ac8/minidumps': No such file or directory
find: `/tmp/tmpbM5ac8/crashes/events': No such file or directory
find: `/tmp/tmpdQACdf/gmp': No such file or directory
find: `/tmp/tmpo1tbqu/thumbnails': No such file or directory
find: `/tmp/tmpW91Yel/extensions': No such file or directory
/tmp
? Are you aware that/tmp
holds running programs' temporary files? But anyway that's likely because you don't have permissions on those files / folders.