Find - How to delete masses

August 2, 2020 18:09

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 {} \;