dbinott Posted February 14, 2020 Share Posted February 14, 2020 I have an unassigned device where NZBGet downloads it's files. For some reason it does not always clean up. So I want to run a user script to clean it up. I came up with this. Basically says, at least I think it does, find and delete all files and directories, excluding the . and .. dirs that where last modified 48 hours ago and are empty or size less than 4k. Will this do what I think it will? find /mnt/disks/SSD_01/ . -type d,f -noleaf -mtime +1 -empty -size -4k -delete Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.