scrub-files(1)

πŸ“¦
version 7.0.1 Β· 3 versions
, in debian bookworm, debian trixie, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ scrub-files(1) ✨

okay bestie so this is scrub-files, a lil tool from GNU Telephony that yeets your files into the void so hard nobody can dig them back out πŸ’… fr fr, she's giving forensic-analysis-proof energy.


🌸 NAME 🌸

scrub-files β€” securely erase files by filling with random data first. periodt, that's the whole vibe 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

scrub [options] paths...

πŸ’– DESCRIPTION πŸ’–

so the way that this works is: this command is used to securely erase files. she does it by filling the file with random data in pre-sized chunks πŸŽ€ (yes, chunks, she's organized like that). and if one pass isn't enough for you, multiple passes of random data may also be used, because why be thorough when you can be extra thorough 😌.

the pre-sized chunks? iconic behaviour honestly. they're used to remove information about the exact original file size β€” so nobody can peek at the leftovers and go "hmm this was 4,271 bytes, suspicious" πŸ™ˆ.

other options include:

  • random renaming of the original file before deletion 🏷️
  • the use of truncation to break down meta-data on what blocks in the file system were originally associated with a securely deleted file πŸ’€

this is specifically intended to make it harder to perform forensic analysis on securely erased files. like, no cap, that's the entire point. main character energy: delete, but make it unrecoverable ✨


πŸ’… OPTIONS πŸ’…

  • --blocksize size β€” sets the default block size (in 1 k increments, iykyk) that scrub-files uses when writing random data. this affects both the final file length β€” which will be aligned to the specified size β€” and the way the --truncate option decomposes files. the default is 1k. πŸ“
  • --follow β€” dereference and follow symlinks, erasing the target file. lowkey important if you're pointing at a link and expecting the link to vanish instead 🌈
  • --passes=count β€” the number of passes used when writing random data. the default is 1 pass. crank it up if you're feeling spicy πŸ”₯
  • --recursive β€” if the argument is a directory, recursively scan the directory and any subdirectory contents as arguments. she'll go down the whole tree, no crumbs left πŸ‘‘
  • --rename β€” rename the file randomly before deletion, to clear persistent inode data 🏷️
  • --truncate β€” decompose the file through truncation to break down file system page maps 🧚
  • --verbose β€” display each file being processed to the console. for the girlies who need to see the progress πŸ“’
  • --help β€” outputs help screen for the user πŸŽ€

⭐ AUTHOR ⭐

scrub-files was written by David Sugar <dyfet@gnutelephony.org>. king behaviour, we love to see it πŸ‘‘


😭 REPORTING BUGS 😭

found a bug? not me finding a bug πŸ’€ report bugs to bug-commoncpp@gnu.org or bugs@gnutelephony.org. they wanna hear from you, fr fr 🫢


Copyright Β© 2010-2014 David Sugar, Tycho Softworks.

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bestie. read that again. NO WARRANTY. none. not even the fitness-for-a-particular-purpose one. she's free, she's fabulous, and she is absolutely not liable πŸ’€

and that's the whole page, gorgeous ✨ this one ships with GNU uCommon, dated January 2010 β€” old enough to be vintage, iconic enough to still be scrubbing πŸŽ€πŸ’– byeeeee 🌸