Securely overwrite and delete a file
permanently delete a file | shred a file in linux | securely remove a sensitive file | securely delete a database dump | shred | delete | securityWarning, destructive. This command deletes, overwrites or changes data in a way that cannot easily be undone. Check every placeholder carefully and make a backup first.
shred -u -z -n 3 -- /root/old-dump.sqlOverwrites the content three times with random data (-n 3), finally with zeros (-z), and then deletes the file (-u). Intended for dumps, keys or exports containing personal data.
Note: On SSDs, in snapshots, in backups and on copy-on-write file systems this is no guarantee. The best protection is not to leave such files lying around unencrypted in the first place.
Also searched as
- permanently delete a file
- shred a file in linux
- securely remove a sensitive file
- securely delete a database dump