Linux how to remove file security and empty trash
By:Roy.LiuLast updated:2024-04-28
Use the shred command to delete the file completely: use the shred command to overwrite the file content multiple times to ensure that the file is deleted safely. You can use the following commands
shred -u -z -n 5 file_name |
empty trash
rm -rf ~/. local /share/Trash/ * |
use following command to confirm
df -h du -sh /your_folder |
From:Is Everything OK
COMMENTS