m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2025-01-17 13:27:58 +0100
committerMarcin Chrzanowski <m@m-chrzan.xyz>2025-01-17 13:27:58 +0100
commit5e653188dcb8ce9a73e09f9a79c7b4bbf5713326 (patch)
tree74803ae87e14694305462c4431d2dc563bb1a0c8
parentac596a67bd65ea41315b10e5fcd9a890345a6dec (diff)
Add generic file operationsHEADmaster
-rw-r--r--file-operations.md13
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>