在Debian系統(tǒng)中安全徹底刪除文件,推薦使用shred命令。
sudo apt-get install shred
然后,使用以下命令刪除文件,例如名為example.txt的文件:
shred -u example.txt
-u選項(xiàng)表示刪除文件后,將其從文件系統(tǒng)中移除。 shred命令默認(rèn)覆蓋文件三次,您可以使用-n選項(xiàng)指定覆蓋次數(shù),例如覆蓋五次:
shred -n 5 example.txt
警告: shred命令會(huì)永久刪除文件,無(wú)法恢復(fù)。請(qǐng)謹(jǐn)慎使用此命令,確保您已備份重要數(shù)據(jù)。