A puzzle! Crontab and mkdir and files, oh my!
Karl Auer
kauer at biplane.com.au
Thu Apr 24 04:01:11 UTC 2025
Here's a puzzler for you!
This is a crontab entry. I've broken it up over several lines for
clarity, but it's all one line in the crontab.
The first line is just saying "do this every day at 01:00".
The second line locates and deletes directories matching "*_temp*.
But what is going on in the last line?
0 1 * * *
find /home/ubuntu/data -type d -name '*_temp*' -exec rm -r {} +
> mkdir /home/ubuntu/data/log/adfd_cleanup.log 2>&1
Please - no theories! If you know, you know. And I don't know!
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au, he/him)
http://www.biplane.com.au/kauer
More information about the ubuntu-users
mailing list