Find - How to delete masses

October 24, 2021 15:16

Every file/folder older than 48h will be deleted…

Add following to the (roots-)crontab: @daily find "[TARGET_FOLDER]" -mindepth 1 -mtime +1 -delete >/dev/null 2>&1

How to clean the .~ files of Nextcloud

First locate and make sure they are not important…

find ./ -name '*.~*'

Then delete them…

find ./ -name '*.~*' -exec rm -rfv {} \;