Delete Files older than ‘X’ days in linux

Situation: We need to delete the files older than 30 days To delete the files in directory older than certain number of days (30 in this case) we can use find command in combination with rm. To delete files having certain pattern (*txt in this case) in the name we can use below: As precautionary …

Delete Files older than ‘X’ days in linux Read More »