Open root's crontab for editing in default editor:
sudo crontab -e
Then add this line:
*/10 * * * * echo '' > /var/log/httpd/access_log
Question
I wanna delete content of log file (/var/log/httpd/access_log) every 10 minutes, Please show me how to do that with crontab in linux Help me please Thanks a lot
Solution
Open root's crontab for editing in default editor:
sudo crontab -e
Then add this line:
*/10 * * * * echo '' > /var/log/httpd/access_log