Debian Codegraph @

upstream/debian-unstable/man1/shred.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH SHRED "1" "February 2026" "GNU coreutils 9.10" "User Commands"
3 .SH NAME
4 shred \- overwrite a file to hide its contents, and optionally delete it
5 .SH SYNOPSIS
6 .B shred
7 [\fI\,OPTION\/\fR]... \fI\,FILE\/\fR...
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 .PP
11 Overwrite the specified FILE(s) repeatedly, in order to make it harder
12 for even very expensive hardware probing to recover the data.
13 .PP
14 If FILE is \-, shred standard output.
15 .PP
16 Mandatory arguments to long options are mandatory for short options too.
17 .TP
18 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#shred-f'\fB\-f, \-\-force\fP\X'tty: link'
19 change permissions to allow writing if necessary
20 .TP
21 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#shred-n'\fB\-n, \-\-iterations=\,N\fP\X'tty: link'\/\fR
22 overwrite N times instead of the default (3)
23 .TP
24 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#shred--random-source'\fB\-\-random\-source=FILE\fP\X'tty: link'
25 get random bytes from FILE
26 .TP
27 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#shred-s'\fB\-s, \-\-size=\,N\fP\X'tty: link'\/\fR
28 shred this many bytes (suffixes like K, M, G accepted)
29 .TP
30 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#shred-u'\fB\-u\fP\X'tty: link'
31 deallocate and remove file after overwriting
32 .TP
33 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#shred--remove'\fB\-\-remove[=HOW]\fP\X'tty: link'
34 like \fB\-u\fR but give control on HOW to delete; See below
35 .TP
36 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#shred-v'\fB\-v, \-\-verbose\fP\X'tty: link'
37 show details of data and metadata operations performed
38 .TP
39 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#shred-x'\fB\-x, \-\-exact\fP\X'tty: link'
40 do not round file sizes up to the next full block;
41 this is the default for non\-regular files
42 .TP
43 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#shred-z'\fB\-z, \-\-zero\fP\X'tty: link'
44 add a final overwrite with zeros to hide shredding
45 .TP
46 \X'tty: link https://www.gnu.org/software/coreutils/shred#shred--help'\fB\-\-help\fP\X'tty: link'
47 display this help and exit
48 .TP
49 \X'tty: link https://www.gnu.org/software/coreutils/shred#shred--version'\fB\-\-version\fP\X'tty: link'
50 output version information and exit
51 .PP
52 Delete FILE(s) if \fB\-\-remove\fR (\fB\-u\fR) is specified. The default is not to remove
53 the files because it is common to operate on device files like \fI\,/dev/hda\/\fP,
54 and those files usually should not be removed.
55 The optional HOW parameter indicates how to remove a directory entry:
56 \&'unlink' => use a standard unlink call.
57 \&'wipe' => also first obfuscate bytes in the name.
58 \&'wipesync' => also sync each obfuscated byte to the device.
59 The default mode is 'wipesync', but note it can be expensive.
60 .PP
61 CAUTION: shred assumes the file system and hardware overwrite data in place.
62 Although this is common, many platforms operate otherwise. Also, backups
63 and mirrors may contain unremovable copies that will let a shredded file
64 be recovered later. See the GNU coreutils manual for details.
65 .SH AUTHOR
66 Written by Colin Plumb.
67 .SH "REPORTING BUGS"
68 Report bugs to: bug\[email protected]
69 .br
70 GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
71 .br
72 General help using GNU software: <https://www.gnu.org/gethelp/>
73 .br
74 Report any translation bugs to <https://translationproject.org/team/>
75 .SH "SEE ALSO"
76 Full documentation <https://www.gnu.org/software/coreutils/shred>
77 .br
78 or available locally via: info \(aq(coreutils) shred invocation\(aq
79 .PP
80 .br
81 Packaged by Debian (9.10\-1)
82 .br
83 Copyright \(co 2026 Free Software Foundation, Inc.
84 .br
85 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
86 .br
87 This is free software: you are free to change and redistribute it.
88 .br
89 There is NO WARRANTY, to the extent permitted by law.