diff options
author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2025-01-17 13:27:58 +0100 |
---|---|---|
committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2025-01-17 13:27:58 +0100 |
commit | 5e653188dcb8ce9a73e09f9a79c7b4bbf5713326 (patch) | |
tree | 74803ae87e14694305462c4431d2dc563bb1a0c8 | |
parent | ac596a67bd65ea41315b10e5fcd9a890345a6dec (diff) |
-rw-r--r-- | file-operations.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/file-operations.md b/file-operations.md new file mode 100644 index 0000000..9ed0441 --- /dev/null +++ b/file-operations.md @@ -0,0 +1,13 @@ +# General file operations and utilities + +## `shred` + +Overwrites a file repeatedly with random data, to prevent data recovery. + +* `-z`: zeroes out at the end +* `-n <N>`: does `N` iterations (deafults to only 3) +* `-u`: deallocates and removes file + +So a common usage: + + shred -zun100 <file> |