adspace


How do I delete files older than 2 days unix?

Answer Posted / Nisha Saini

You can use the `find` command with the `-mtime` option to find files modified more than 2 days ago and then delete them using `rm`. Example: `find /path/to/directory -type f -mtime +2 -exec rm {} ;`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you edit a large file without opening it in unix?

988