m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/file-operations.md
diff options
context:
space:
mode:
Diffstat (limited to 'file-operations.md')
-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>