A thorough Linux clean-up script
help.unlimitedweb.space
help.unlimitedweb.space
CAUTION: shred assumes the file system and hardware overwrite data
in place. Although this is common, many platforms operate
otherwise. Also, backups and mirrors may contain unremovable
copies that will let a shredded file be recovered later. See the
GNU coreutils manual for details.
[0] - https://man7.org/linux/man-pages/man1/shred.1.html[1] - https://stackoverflow.com/questions/913282/shred-doesnt-work...
Come on, this is not even low effort. I'm sure you can do better than this.
shred_and_fill "$HOME/.local/share/Trash"
shred_and_fill "/root/.local/share/Trash"
If I, as a sysadmin give root rights to my user, and that user deletes my (real root) files, even from the Trash or anywhere else, then the next step includes such a level of violence that's not compatible with any kind of Code of Conduct.