aboutsummaryrefslogtreecommitdiff
path: root/toys/other/shred.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-10-17 16:21:37 -0700
committerRob Landley <rob@landley.net>2018-10-20 14:52:08 -0500
commit74f22a7d5cb6ed03f00c261fb4e28b411f1c4c0a (patch)
tree7dcfe85f05948afe402a9a399d0d37d6a7d4d23a /toys/other/shred.c
parent3727bafda4093dffaec93a9f679f997c3df8bf70 (diff)
downloadtoybox-74f22a7d5cb6ed03f00c261fb4e28b411f1c4c0a.tar.gz
Some more --help consistency.
From eyeballing the output of for i in `./toybox | tr " " "\n"` ; do ./toybox $i --help ; done | \ grep '^-' | grep -v "\t"
Diffstat (limited to 'toys/other/shred.c')
-rw-r--r--toys/other/shred.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/toys/other/shred.c b/toys/other/shred.c
index e10adc09..680320ec 100644
--- a/toys/other/shred.c
+++ b/toys/other/shred.c
@@ -14,13 +14,13 @@ config SHRED
Securely delete a file by overwriting its contents with random data.
- -f Force (chmod if necessary)
- -n COUNT Random overwrite iterations (default 1)
- -o OFFSET Start at OFFSET
- -s SIZE Use SIZE instead of detecting file size
- -u unlink (actually delete file when done)
- -x Use exact size (default without -s rounds up to next 4k)
- -z zero at end
+ -f Force (chmod if necessary)
+ -n COUNT Random overwrite iterations (default 1)
+ -o OFFSET Start at OFFSET
+ -s SIZE Use SIZE instead of detecting file size
+ -u Unlink (actually delete file when done)
+ -x Use exact size (default without -s rounds up to next 4k)
+ -z Zero at end
Note: data journaling filesystems render this command useless, you must
overwrite all free space (fill up disk) to erase old data on those.