NATURALSELECTION(1)

πŸ“¦ version 1.8.12, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ‘‘ NATURALSELECTION(1) πŸ‘‘

okay bestie, welcome to the User Commands section of the manual, and today's main character is naturalselection β€” a whole legend. it's a cache directory manager that keeps your cache dirs from eating the whole disk. slay. πŸ’…


✨ NAME ✨

naturalselection β€” keep cache directories below a specified threshold πŸŽ€


🌸 SYNOPSIS 🌸

naturalselection.py [options] cacheDirectory

πŸ¦‹ DESCRIPTION πŸ¦‹

it's a cache directory manager, no cap. it deletes cache entries based on accesstime and free space thresholds. and the lil fun fact: this utility is distributed alongside SabreDAV. iconic behavior, honestly.


πŸ’– OPTIONS πŸ’–

  • --version β€” shows the program's version number and then dips out (exits). ✨
  • -h, --help β€” shows this help message and exits. your bestie when you're lost 🫢
  • -s β€” does NOT actually make any changes, it just simulates the behaviour. a little dress rehearsal, a vibe check before the real thing. πŸ™ˆ
  • -r RUNS, --runs=RUNS β€” how many times to check before exiting. -1 is infinite, and that's the default. so yeah, by default it's just gonna keep going forever, main character energy fr. ♾️
  • -n SLEEP, --interval=SLEEP β€” sleep time in seconds (default = 5). lil nap between checks 😴
  • -l THRESHOLD, --threshold=THRESHOLD β€” threshold in bytes (default = 10737418240, which is 10GB). that's the line, bestie β€” cross it and stuff starts getting deleted πŸ”₯
  • -m MIN_ERASE, --min-erase=MIN_ERASE β€” minimum number of bytes to erase when the threshold is reached. setting this option higher will reduce the amount of times the cache directory will need to be scanned. (the default is 1073741824, which is 1GB.) so bigger number = less scanning, more deleting at once. work smarter not harder πŸ’€

⚠️ real talk: that -s flag is your friend. simulate first, because the non-simulated version is out here actually deleting cache entries. no undo button. periodt.

naturalselection v0.3 🌈 November 2021 β€” and that's the whole page, bestie. go forth and keep those cache dirs under threshold, you absolute icon πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from