SHRED(1) General Commands Manual SHRED(1)

shredzero and unlink files

shred [-fvzx] [-s size] [-n iterations] [-u|--remove[=how]] [--random-source=path] file

Writes NUL bytes until end of files (standard output stream if "-"), then removes them if -u is specified.

Don't use this.

If you think you need this: don't. Secure-TRIM flash media, single-pass dd if=/dev/zero over magnetic media. Or just burn it. You may be tempted to use this on regular files: don't. Just remove them instead of making more copies by overwriting them again.

, --force
Change mode to 0200 (write for owner) if opening file failed with EACCESS.
, --remove[=how]
Remove file after writing to it.
, --verbose
Log status to the standard error stream.
, --size=size
Write size NULs instead of the file length. Same format as stdbuf(1).

, --zero
All below ignored.
=path
 
, --iterations=count
 
, --exact
 

Originates from the GNU system, where it purports to

Overwrite the specified FILE(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.
This is laughable, of course.
December 25, 2022 voreutils pre-v0.0.0-latest