1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 18:19:00 +02:00

doc: shred: mention unsupported file types

* src/shred.c (usage): Mention the behavior of 'shred' on FIFOs,
sockets, and terminals.
* doc/coreutils.texi (shred invocation): Likewise.
Addresses https://bugs.gnu.org/30177
This commit is contained in:
Collin Funk
2026-05-12 18:35:28 -07:00
parent dcca2a53b3
commit 45bbd75fb0
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -10372,6 +10372,10 @@ to destroy using @command{shred}, be sure that it is not backed up or mirrored.
shred [@var{option}]@dots{} @var{file}[@dots{}]
@end example
If @var{file} is a FIFO, socket, or terminal, @command{shred} skips it
and emit a diagnostic message because the contents of these file types
do not reside on disk.
The program accepts the following options. Also see @ref{Common options}.
@table @samp
+5
View File
@@ -220,6 +220,11 @@ If FILE is -, shred standard output.\n\
oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
FILE will be skipped with a diagnostic message if it is a FIFO, socket, or\n\
terminal, since its data does not reside on disk.\n\
"), stdout);
fputs (_("\
\n\
Delete FILE(s) if --remove (-u) is specified. The default is not to remove\n\
the files because it is common to operate on device files like /dev/hda,\n\
and those files usually should not be removed.\n\