gc(1)
π gc(1) β like, the garbage collection one, bestie ποΈβ¨
okay so real talk, this is a page from the General Commands Manual and it's about gc. short, sweet, and honestly? iconic. it's the glow-up your nix store has been begging for π«Ά
πΈ NAME πΈ
gc β run garbage collection. yep. that's it. it's literally short for nix-store --gc, no cap π
β¨ SYNOPSIS β¨
gc [-n|--non-interactive] [-i|--interactive] [-b|--bigger] [-q|--quota]
[-d|--dry-run] [-m|--modest] [-h|--help]
look at all those flags. she's got options, she's got range, she's a main character π
π¦ DESCRIPTION π¦
run garbage collection (short for nix-store --gc).
that's the whole vibe. your store gets cleaned, the clutter goes bye-bye, and honestly? she ate π₯
π OPTIONS π
-n,--non-interactiveβ do not ask before running garbage collection. she just goes. no questions, no small talk, straight to business π-i,--interactiveβ ask before running garbage collection. consent era fr fr, she checks in with you first π-b,--bigger <BIGGER>β only perform gc if the store is bigger than BIGGER Gibibytes. like, if it's not that thicc, she's not bothering π-q,--quota <QUOTA>β only perform gc if the store uses more than QUOTA% of its device. percentage-based boundaries, very reasonable, we love to see it β-d,--dry-runβ don't actually run garbage collection. it's giving window shopping. preview mode only, nothing gets deleted, you're safe bestie π§-m,--modestβ collect just as much garbage as to match--biggeror--quota. she's not greedy, she's modest, it's in the name π
the desired target size of the store is calculated based on --bigger or --quota and then rewritten to match the --max-freed option of nix-store(1). garbage collection is then performed stopping, as soon as the desired target size is met. like a little diet instead of a full reset β precise, intentional, lowkey genius πΈ
-h,--helpβ print help (see a summary with'-h'). honestly the friendliest flag in the game, she's always there for you π
ok tiny heads-up before you go:-m/--modestis the one where the target size gets calculated from--biggeror--quotaand rewritten to match--max-freedinnix-store(1), and gc stops as soon as that target is met. that's not me making stuff up, that's literally what the page says, so don't come for me π
and that's the whole page, bestie β gc from the General Commands Manual, footer vibes: gc, gc(1). she's short, she's efficient, she's the moment. periodt πβ¨
π¦ where this page comes from
- nixpkgs unstable: nix-sweep 0.8.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms