Remove a file after a single-pass overwriting with random data

srm

  • Securely remove files or directories.
    Overwrites the existing data one or multiple times. Drop in replacement for rm.
    More information: <http://srm.sourceforge.net/srm.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

srm -s {{path/to/file}}

click the source code to copy install srm on any operating system with command-not-found.com