LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kondo

Clean dependencies and build artifacts from projects

TLDR

Scan the current directory for cleanable projects
$ kondo
copy
Scan a specific directory
$ kondo [path/to/directory]
copy
Scan multiple directories
$ kondo [path/to/dir1] [path/to/dir2]
copy
Filter to projects not modified for a given period
$ kondo -o [3months]
copy

SYNOPSIS

kondo [options] [directories...]

DESCRIPTION

kondo is a filesystem cleaning tool that recursively searches directories for known project structures and determines how much space can be saved by removing dependency and build artifact directories. It supports 20+ project types including Cargo (Rust), nodemodules (JavaScript), target (Java/Gradle), pycache_ (Python), and many more.When cleanable projects are found, kondo displays how much space each one uses and prompts whether to delete the artifacts.

PARAMETERS

-o, --older PERIOD

Filter projects to those not modified for at least the specified period (e.g., 3months, 1year).
-a, --all
Clean all found projects without prompting.
-f, --follow-symlinks
Follow symbolic links when scanning.
-I, --ignored-dirs DIRS
Directories to ignore during scanning.

INSTALL

sudo pacman -S kondo
copy
brew install kondo
copy
nix profile install nixpkgs#kondo
copy

CAVEATS

Kondo is essentially rm -rf with a prompt. Always have a backup of your projects before using it. Deleted build artifacts will need to be re-downloaded or rebuilt.

HISTORY

kondo was created by tbillington and is written in Rust. The name references Marie Kondo's decluttering philosophy applied to developer project directories.

SEE ALSO

du(1), rm(1), ncdu(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid