小编the*_*ham的帖子

`rm -P` 的目的是什么?

rm当我遇到这个选项时,我正在阅读手册页:

-P    Overwrite regular files before deleting them.  Files are overwritten 
      three times, first with the byte pattern 0xff, then 0x00, and 
      then 0xff again, before they are deleted.
Run Code Online (Sandbox Code Playgroud)

我想-P是为了彻底删除一个文件,但不会将所有字节设置为0xff0x00足够吗?为什么它必须在这两个三倍之间切换?

options rm

13
推荐指数
2
解决办法
4241
查看次数

标签 统计

options ×1

rm ×1