shred命令
?不做陳冠希必備。。。。
shred --help 用法:shred [選項]... 文件... Overwrite the specified FILE(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.Mandatory arguments to long options are mandatory for short options too.-f, --force 必要時修改權限以使目標可寫-n, --iterations=N 覆蓋N 次,而非使用默認的3 次--random-source=文件 從指定文件中取出隨機字節-s, --size=N 粉碎數據為指定字節的碎片(可使用K、M 和G 作為單位)-u, --remove[=HOW] truncate and remove file after overwriting; See below-v, --verbose show progress-x, --exact do not round file sizes up to the next full block;this is the default for non-regular files-z, --zero add a final overwrite with zeros to hide shredding--help 顯示此幫助信息并退出--version 顯示版本信息并退出If FILE is -, shred standard output.Delete FILE(s) if --remove (-u) is specified. The default is not to remove the files because it is common to operate on device files like /dev/hda, and those files usually should not be removed. The optional HOW parameter indicates how to remove a directory entry: 'unlink' => use a standard unlink call. 'wipe' => also first obfuscate bytes in the name. 'wipesync' => also sync each obfuscated byte to disk. The default mode is 'wipesync', but note it can be expensive.警告:請注意使用shred 時有一個很重要的條件: 文件系統會在原來的位置覆蓋指定的數據。傳統的文件系統符合此條件,但許多現代 的文件系統都不符合條件。以下是會令shred 無效或不擔保一定有效的文件系統的 例子:* 有紀錄結構或是日志式文件系統,如AIX 及Solaris 使用的文件系統 (以及JFS、ReiserFS、XFS、Ext3 等)* 會重復寫入數據,及即使一部份寫入動作失敗后仍可繼續的文件系統,如使用RAID 的文件系統* 會不時進行快照記錄的文件系統,像Network Applicance 的NFS 服務器* 文件系統是存放于緩存位置,比如NFS 第三版用戶端* 壓縮文件系統在Ext3 文件系統中,以上免責聲明僅適用于啟用了data=journal 模式的情況, 此時文件日志記錄了附加的元數據 shred 的作用將受到影響。在data=ordered(默認) 或data=writeback 模式下shred 仍然有效。 Ext3 日志模式可通過向/etc/fstab 的掛載選項中添加data=something 進行設置, 您可以查看mount 的man 頁面以獲得詳細信息。另外,文件系統備份和遠程鏡像可能會 包含不能被刪除的文件副本,這將會 允許碎片文件被恢復。GNU coreutils online help: <http://www.gnu.org/software/coreutils/> 請向<http://translationproject.org/team/zh_CN.html> 報告shred 的翻譯錯誤 要獲取完整文檔,請運行:info coreutils 'shred invocation'
?
轉載于:https://www.cnblogs.com/wqbin/p/11055097.html
總結
 
                            
                        - 上一篇: 四字微信网名男生
- 下一篇: Django-C002-深入模型,到底有
