Delete Files Older Than n Days

In Linux system you can delete old unused files (usually the session files in /tmp) all at once by running this command:

this command will delete files which is 5 days old, if you want to change the number of days to 3 days old, then you have to change +5 to +3 and run the command again.

One thought on “Delete Files Older Than n Days”

Leave a Reply

Your email address will not be published. Required fields are marked *