srm.1   [plain text]


.TH SRM "1" "20 September 2004" "Mac OS X"
.SH NAME
srm \- securely remove files or directories
.SH SYNOPSIS
.B srm
[\fIOPTION\fR]...\fI FILE\fR...
.SH DESCRIPTION
.PP
.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.
.P
.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".
.SH OPTIONS
.PP
.TP
\fB\-d\fR, \fB\-\-directory\fR
ignored (for compatibility with \fBrm(1)\fR)
.TP
\fB\-f\fR, \fB\-\-force\fR
ignore nonexistent files, never prompt
.TP
\fB\-i\fR, \fB\-\-interactive\fR
prompt before any removal
.TP
\fB\-r\fR, \fB\-R\fR, \fB\-\-recursive\fR
remove the contents of directories recursively
.TP
\fB\-s\fR, \fB\-\-simple\fR
only overwrite with a single pass of random data
.TP
\fB\-m\fR, \fB\-\-medium\fR
overwrite the file with 7 US DoD compliant passes
(0xF6, 0x00, 0xFF, random, 0x00, 0xFF, random)
.TP
\fB\-z\fR, \fB\-\-zero\fR
after overwriting, zero blocks used by file
.TP
\fB\-n\fR, \fB\-\-nounlink\fR
overwrite file, but do not rename or unlink it
.TP
\fB\-v\fR, \fB\-\-verbose\fR
explain what is being done
.TP
\fB\-\-help\fR
display this help and exit
.TP
\fB\-\-version\fR
output version information and exit
.SH NOTES
.PP 
.B srm
can not remove write protected files owned by another user, regardless of
the permissions on the directory containing the file.
.PP
The
.B -s
option overrides the
.B -m
option, if both are present.
If neither is specified, the 35-pass Gutmann algorithm is used.
.PP
Development and discussion of
.B srm
is carried out at <http://sourceforge.net/project/?group_id=3297>,
which is also accessible via <http://srm.sourceforge.net>.
.SH "SEE ALSO"
.B rm(1)