/ Published in: Bash

URL: http://linux.die.net/man/1/find
Finds and removes files older than 2 days.\r\n\r\nUse with caution obviously, as if you fuck up, you\'ll certainly delete files you want to keep, possibly destroying your entire computer.\r\n\r\nEnjoy!
Expand |
Embed | Plain Text
# delete ANY FILE created more than 1 day ago find -mtime +1 -exec rm {} \;
You need to login to post a comment.