Vea*_*zer 32
secure-delete
。srm -r pathname
删除您的文件夹和文件。默认设置是 38 (!!!) 次覆盖,恕我直言,这是极端矫枉过正的(在此处查看有关此的更多信息)。
对于我的使用,我只需要一次随机数据,所以我使用srm -rfll pathname
.
如果要在 GUI 中为文件和文件夹创建右键单击选项,请使用 gnome-actions 调用如下脚本:
#!/bin/bash
if dialog=`zenity --window-icon=warning --question --title="Secure Delete" --no-wrap --text="Are you sure you want to securely delete:\n\n $1\n\nand any other files and folders selected? File data will be overwritten and cannot be recovered."`
then /usr/bin/srm -fllrv "$@"| zenity --progress --pulsate --text="File deletion in progress..." --title="Secure Delete" --auto-close
fi
Run Code Online (Sandbox Code Playgroud)
如果你想要更多的偏执设置,一定要修改上面的脚本。
小智 10
对于文件而不是目录,这里有一个更简单的方法而不是-exec shred -u {} \;
类型的方法:
cd to your directory.
Run Code Online (Sandbox Code Playgroud)
然后
find . -type f -print0 | xargs -0 shred -fuzv -n 48
Run Code Online (Sandbox Code Playgroud)
这会递归地传递 48 次到您cd
进入的当前目录。
希望这对一些人有所帮助。
归档时间: |
|
查看次数: |
57000 次 |
最近记录: |