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 like K, M, G accepted)
  • -u โ€” deallocate and remove file after overwriting
  • --remove[=HOW] โ€” like -u but 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 ๐Ÿ’€


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 ๐Ÿ“


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