NILFS-CLEAN(8)
β¨ NILFS-CLEAN β¨
okay so bestie, welcome to nilfs-clean, section 8 of the System Manager's Manual π this is the lil tool that pokes nilfs_cleanerd(8) and tells it what to do about garbage collection. yes she's giving main character energy, no she is not here to be subtle π
πΈ NAME πΈ
nilfs-clean β run garbage collector on NILFS file system π§Ήβ¨
π¦ SYNOPSIS π¦
nilfs-clean [options] [device|node]
π DESCRIPTION π
so the way that nilfs-clean works is it literally talks to nilfs_cleanerd(8) and controls how garbage collection (GC) runs on your NILFS2 file systems. it's the girl in the group chat who makes the plans happen π
you can use it to manually run garbage collection on a file system mounted on device, and the whole point is to free up space. and device? she's flexible bestie β it can be a block device or a filesystem node (a file or a directory) that lives on that filesystem π«Ά
now, if you pass a GC command using one of the following options β that's -c, -s, -r, and -l β then the command gets sent over to nilfs_cleanerd(8) and performed there. but if you specify no commands at all? then nilfs-clean just triggers a one-pass cleaning. simple as that, periodt β¨
when device is omitted, nilfs-clean goes and picks an active NILFS2 file system in the system for you. she chooses π₯
β οΈ okay important: this command is valid only for mounted NILFS2 file systems, and it will fail if the device has no active mounts. no mounts, no service, sorry babe π
π OPTIONS π
-b,--break,--stopβ stop garbage collection. that's it, that's the tweet π-c,--reload[=conffile]β request a config file reload from the cleaner process. if you hand over an optional configuration file, that file gets read bynilfs_cleanerd(8)and the cleaner configuration gets reset to whatever's in it. if you give no argument, then a configuration file selected bynilfs_cleanerd(8)gets reloaded instead. her choice, not yours π-l,--statusβ display cleaner status. we love a status update π-h,--helpβ display help message and exit. the classic escape hatch πββοΈ-m,--min-reclaimable-blocks=COUNT[%]β specify the minimum number of reclaimable blocks a segment needs before it can be cleaned. if the argument is followed by a percent sign, it means the ratio of blocks in a segment. heads up tho: this argument will only have an effect if theuse_set_suinfoflag is set in the configuration file. no flag, no vibes β¨-p,--protection-period=intervalβ set the protection period for a cleaner run. interval is an integer value and it specifies the minimum time that deleted or overwritten data will be preserved in the file system. smaller values = more free space made by garbage collection π₯ optionally, interval can be suffixed with one of these units designators:s,m,h,d,w,M, orYβ that's seconds, minutes, hours, days, weeks, months, or years respectively. pick your time era bestie β³-q,--quitβ shut down the cleaner daemon. bye girl π-r,--resumeβ resume garbage collection. welcome back π-s,--suspendβ suspend garbage collection. but note this: if users manually suspend garbage collection with this option, it will not restart automatically until the user resumes the garbage collection. so like, you did this, you undo it, iykyk π-S,--speed=COUNT[/SECONDS]β set garbage collection speed for a cleaner run. zoom zoom π¦-v,--verboseβ verbose mode. give me all the lore π-V,--versionβ display version and exit. slay β
π AUTHOR π
Ryusuke Konishi <konishi.ryusuke@gmail.com> β thank you for your service king π
π AVAILABILITY π
nilfs-clean is part of the nilfs-utils package and is available from https://nilfs.sourceforge.io. go get her ποΈ
π SEE ALSO π
nilfs(8), nilfs_cleanerd(8). read those too bestie, they're the supporting cast π«Ά
and that's the whole page!! this was nilfs-utils version 2.3, dated Jan 2026 πΈ mwah, go clean some garbage, you're doing amazing sweetie π β¨
π¦ where this page comes from
- alpine 3.24: nilfs-utils-doc 2.3.0-r0 Β· GPL-2.0-or-later
- arch rolling: nilfs-utils 2.3.1-1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- nixpkgs unstable: nilfs-utils 2.3.1
- Copyright (C) 2011-2012 Nippon Telegraph and Telephone Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms