Name

srm

Synopsis

    srm [options] file ...

Securely remove files. srm overwrites the data in each file before unlinking it. This prevents recovery of file data by examination of the raw disk blocks. The options are purposely similar to those of the standard rm command.

URL: http://srm.sourceforge.net.

Options

-d, --directory

Ignored. For compatibility with rm.

-f, --force

Ignore nonexistent files. This prevents srm from prompting.

--help

Display an option summary and then exit.

-i, --interactive

Interactive. Prompt before removing files.

-m, --medium

Use seven US DOD compliant passes (0xF6, 0x00, 0xFF, random, 0x00, 0xFF, and random).

-n, --nounlink

Overwrite the file, but do not unlink or rename it.

-r, -R, --recursive

Recursively remove the contents of directories.

-s, --simple

Overwrite files with just a single pass of random data.

-v, --verbose

Be verbose.

--version

Print version information and then exit.

-z, --zero

Zero the blocks used by the file after overwriting them.

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.