使用 "rm -P" 有什么意义?

What is the point of using "rm -P"?

手册页包含以下关于 -P 参数的信息:

-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.

使用此 argument 参数的典型用例是什么?想到了安全删除,但是简单地覆盖文件 3 次真的那么安全吗?

这个post可以回答你的问题。

There is a technique called residual information retrieval that can read data that was deleted based on the idea that when the drive is magnetized in order to store data other parts that are close to the data is also affected by this and it should be possible to re-read data this way ... this is though a costly technique, but use it if you are paranoid ;)

By writing data 3 times (in this case) the parts next to the track on the drive should be re-set as well in order to make it impossible to re-read this way.