shred命令
?不做陳冠希必備。。。。
shred --help 用法:shred [選項(xiàng)]... 文件... 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 必要時(shí)修改權(quán)限以使目標(biāo)可寫-n, --iterations=N 覆蓋N 次,而非使用默認(rèn)的3 次--random-source=文件 從指定文件中取出隨機(jī)字節(jié)-s, --size=N 粉碎數(shù)據(jù)為指定字節(jié)的碎片(可使用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.警告:請(qǐng)注意使用shred 時(shí)有一個(gè)很重要的條件: 文件系統(tǒng)會(huì)在原來的位置覆蓋指定的數(shù)據(jù)。傳統(tǒng)的文件系統(tǒng)符合此條件,但許多現(xiàn)代 的文件系統(tǒng)都不符合條件。以下是會(huì)令shred 無效或不擔(dān)保一定有效的文件系統(tǒng)的 例子:* 有紀(jì)錄結(jié)構(gòu)或是日志式文件系統(tǒng),如AIX 及Solaris 使用的文件系統(tǒng) (以及JFS、ReiserFS、XFS、Ext3 等)* 會(huì)重復(fù)寫入數(shù)據(jù),及即使一部份寫入動(dòng)作失敗后仍可繼續(xù)的文件系統(tǒng),如使用RAID 的文件系統(tǒng)* 會(huì)不時(shí)進(jìn)行快照記錄的文件系統(tǒng),像Network Applicance 的NFS 服務(wù)器* 文件系統(tǒng)是存放于緩存位置,比如NFS 第三版用戶端* 壓縮文件系統(tǒng)在Ext3 文件系統(tǒng)中,以上免責(zé)聲明僅適用于啟用了data=journal 模式的情況, 此時(shí)文件日志記錄了附加的元數(shù)據(jù) shred 的作用將受到影響。在data=ordered(默認(rèn)) 或data=writeback 模式下shred 仍然有效。 Ext3 日志模式可通過向/etc/fstab 的掛載選項(xiàng)中添加data=something 進(jìn)行設(shè)置, 您可以查看mount 的man 頁(yè)面以獲得詳細(xì)信息。另外,文件系統(tǒng)備份和遠(yuǎn)程鏡像可能會(huì) 包含不能被刪除的文件副本,這將會(huì) 允許碎片文件被恢復(fù)。GNU coreutils online help: <http://www.gnu.org/software/coreutils/> 請(qǐng)向<http://translationproject.org/team/zh_CN.html> 報(bào)告shred 的翻譯錯(cuò)誤 要獲取完整文檔,請(qǐng)運(yùn)行:info coreutils 'shred invocation'
?
轉(zhuǎn)載于:https://www.cnblogs.com/wqbin/p/11055097.html
總結(jié)
- 上一篇: 四字微信网名男生
- 下一篇: Django-C002-深入模型,到底有