Mac OS Sierra 和 srm

Mig*_*use 7 rm macos

我有一个脚本可以不时安全地清空我的垃圾箱,我正在使用srm. 我想人们仍然可以使用srm. 但是,似乎srm不再随 mac os 一起提供。你知道替代 的候选人srm吗?任何人的任何一句话?

PS 例如,srm用于安全清空垃圾箱的随机示例。请注意,该示例适用于 El Capitan,因此srm在 mac os Sierra 中消失了(或者至少,情况似乎如此)。

Mat*_*teo 12

您可以使用 rm -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.
Run Code Online (Sandbox Code Playgroud)


小智 1

  1. 安装MacPorts并...
  2. 查找端口:srm
  3. 终端:sudo port install srm