Hi, I'm using CPanel and I need to clean a tmp directory but keep index.html for security reasons. What's the command should I use to clean everything except index.html? Thanks.
What level of access you have; just cPanel level access? Anyway, a command like following will remove all files except index.html. So you can create a script with following content and set it as a cron and it should work. PS: make sure to replace <complete path to dir> with full path to the tmp directory.