D dev99 Established Member ★ 20 ★ Impact 7 Sep 6, 2006 461 views 3 replies #1 Hi I need a cron job to delete files in a folder every 2 or 3 days. I will set it up from directadmin. I know how to do the date settings, but would this command work. cd /(file name) rm fr *
Hi I need a cron job to delete files in a folder every 2 or 3 days. I will set it up from directadmin. I know how to do the date settings, but would this command work. cd /(file name) rm fr *
Noobie Established Member ★ 15 ★ Impact 11 Sep 6, 2006 #2 I'm not sure about directadmin but you can try rm -rf /path/to/your/folder
abdussamad Established Member ★ 15 ★ Impact 64 Sep 6, 2006 #3 You may also need to use the tilde character to refer to your home directory. Something like rm -rf ~/path/to/*
You may also need to use the tilde character to refer to your home directory. Something like rm -rf ~/path/to/*