I want a command to shred completely the contents of a folder/directory (which may be inside folders/directories).
Also please explain the command.
Ubuntu – How to shred a folder
command linefilesshredding
command linefilesshredding
I want a command to shred completely the contents of a folder/directory (which may be inside folders/directories).
Also please explain the command.
Best Answer
secure-delete
.srm -r pathname
to remove your folder and files.The default settings are for 38 (!!!) passes of overwrites which is extreme overkill imho (see more info about this here).
For my usage, I only want a single pass of random data so I use
srm -rfll pathname
.If you want to create a right-click option in the GUI for files and folders, use gnome-actions to call a script like this:
If you want more paranoid settings be sure to modify the above script.