Quantcast
Channel: Question and Answer » cron
Viewing all articles
Browse latest Browse all 165

How to set up cron job in Linux to delete all regular files?

$
0
0

I need to set up a job to delete all of the regular files in the /home/admin directory on the second day of every month at 8:30 A.M.
It seems like wrong command:

# crontab -e
30 08 02 * /bin/find /home/admin -type f -exec /bin/rm {} ";"

Help please.


Viewing all articles
Browse latest Browse all 165

Latest Images

Trending Articles



Latest Images