shred
Options
--force
,-f
-
shred-force-help
--iterations=<NUMBER>
,-n <NUMBER>
-
shred-iterations-help
--size=<N>
,-s <N>
-
shred-size-help
-u
-
shred-deallocate-help
--remove=<HOW>
-
shred-remove-help
--verbose
,-v
-
shred-verbose-help
--exact
,-x
-
shred-exact-help
--zero
,-z
-
shred-zero-help
--random-source
-
shred-random-source-help
Examples
Overwrite a file:
shred {{path/to/file}}
Overwrite a file and show progress on the screen:
shred {{[-v|--verbose]}} {{path/to/file}}
Overwrite a file, leaving zeros instead of random data:
shred {{[-z|--zero]}} {{path/to/file}}
Overwrite a file a specific number of times:
shred {{[-n|--iterations]}} {{25}} {{path/to/file}}
Overwrite a file and remove it:
shred {{[-u|--remove]}} {{path/to/file}}
Overwrite a file 100 times, add a final overwrite with zeros, remove the file after overwriting it and show verbose progress on the screen:
shred {{[-vzun|--verbose --zero --remove --iterations]}} 100 {{path/to/file}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.