SHRED(1)
๐ SHRED(1) ๐
okay so bestie, welcome to the User Commands section of the manual โ this is the page for shred, and it's lowkey one of the most dramatic tools in coreutils. let's get into it ๐ซถ
โจ NAME โจ
shred โ overwrite a file to hide its contents, and optionally delete it ๐
๐ธ SYNOPSIS ๐ธ
shred [OPTION]... FILE...
๐ฆ DESCRIPTION ๐ฆ
So here's the vibe: shred overwrites the FILE(s) you give it, over and over again, so that even the most expensive, extra, forensic-level hardware probing would have a genuinely hard time getting your data back. it's giving "burn the receipts, then burn the ashes" ๐ฅ
if FILE is -, then shred shreds standard output. iconic.
Mandatory arguments to long options are mandatory for short options too. (yes bestie, the rule is the rule.)
๐ OPTIONS ๐
-f,--forceโ change permissions to allow writing if necessary-n,--iterations=Nโ overwrite N times instead of the default (3)--random-source=FILEโ get random bytes from FILE-s,--size=Nโ shred this many bytes (suffixes likeK,M,Gaccepted)-uโ deallocate and remove file after overwriting--remove[=HOW]โ like-ubut give control on HOW to delete; see below-v,--verboseโ show details of data and metadata operations performed-x,--exactโ do not round file sizes up to the next full block; this is the default for non-regular files-z,--zeroโ add a final overwrite with zeros to hide shredding--helpโ display this help and exit--versionโ output version information and exit
๐ THE WHOLE DELETION SITUATION ๐
FILE will be skipped with a diagnostic message if it is a FIFO, socket, or terminal, since its data does not reside on disk. no disk data, no shredding, sorry bestie ๐
Delete FILE(s) if --remove (-u) is specified. The default is not to remove the files because it is common to operate on device files like /dev/hda, and those files usually should not be removed. like, please don't delete your hard drive, i'm begging ๐ญ
The optional HOW parameter indicates how to remove a directory entry:
'unlink'=> use a standard unlink call.'wipe'=> also first obfuscate bytes in the name.'wipesync'=> also sync each obfuscated byte to the device.
The default mode is 'wipesync', but note it can be expensive. ๐ธ
๐ CAUTION ๐
CAUTION: shred assumes the file system and hardware overwrite data in place. Although this is common, many platforms operate otherwise. Also, backups and mirrors may contain unremovable copies that will let a shredded file be recovered later. See the GNU coreutils manual for details.
fr fr โ shred is doing its best, but it can't fight your filesystem's whole architecture or that one backup you forgot about. read the GNU coreutils manual, bestie, it's important ๐ซถ
โญ AUTHOR โญ
Written by Colin Plumb. absolute legend, no cap ๐
๐ REPORTING BUGS ๐
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
๐ SEE ALSO ๐
- Full documentation <https://www.gnu.org/software/coreutils/shred>
- or available locally via:
info '(coreutils) shred invocation'
GNU coreutils 9.12 ยท September 2026 โ that's the source, the version and the date, bestie, and this manual page is officially done โจ go forth and shred responsibly ๐
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms