From 5e653188dcb8ce9a73e09f9a79c7b4bbf5713326 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Fri, 17 Jan 2025 13:27:58 +0100 Subject: Add generic file operations --- file-operations.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 file-operations.md 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 `: does `N` iterations (deafults to only 3) +* `-u`: deallocates and removes file + +So a common usage: + + shred -zun100 -- cgit v1.2.3