srm.1   [plain text]

.TH SRM "1" "20 September 2004" "Mac OS X"
srm \- securely remove files or directories
.B srm
[\fIOPTION\fR]...\fI FILE\fR...
.B srm
removes each specified file by overwriting, renaming, and truncating 
it before unlinking. This prevents other people from undeleting or 
recovering any information about the file from the command line.
.BR srm ,
like every program that uses the getopt function to parse its
arguments, lets you use the
.I \-\-
option to indicate that all following arguments are non-options.  To
remove a file called '\-f' in the current directory, you could type
either "srm \-\- \-f" or "srm ./\-f".
\fB\-d\fR, \fB\-\-directory\fR
ignored (for compatibility with \fBrm(1)\fR)
\fB\-f\fR, \fB\-\-force\fR
ignore nonexistent files, never prompt
\fB\-i\fR, \fB\-\-interactive\fR
prompt before any removal
\fB\-r\fR, \fB\-R\fR, \fB\-\-recursive\fR
remove the contents of directories recursively
\fB\-s\fR, \fB\-\-simple\fR
only overwrite with a single pass of random data
\fB\-m\fR, \fB\-\-medium\fR
overwrite the file with 7 US DoD compliant passes
(0xF6, 0x00, 0xFF, random, 0x00, 0xFF, random)
\fB\-z\fR, \fB\-\-zero\fR
after overwriting, zero blocks used by file
\fB\-n\fR, \fB\-\-nounlink\fR
overwrite file, but do not rename or unlink it
\fB\-v\fR, \fB\-\-verbose\fR
explain what is being done
display this help and exit
output version information and exit
.B srm
can not remove write protected files owned by another user, regardless of
the permissions on the directory containing the file.
.B -s
option overrides the
.B -m
option, if both are present.
If neither is specified, the 35-pass Gutmann algorithm is used.
Development and discussion of
.B srm
is carried out at <>,
which is also accessible via <>.
.B rm(1)