Linux command
kondo 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Scan the current directory
kondo
Scan a specific directory
kondo [path/to/directory]
Scan multiple directories
kondo [path/to/dir1] [path/to/dir2]
Filter to projects not modified
kondo -o [3months]
说明
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), node_modules (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.
参数
- -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.
FAQ
What is the kondo command used for?
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), node_modules (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.
How do I run a basic kondo example?
Run `kondo` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o, --older _PERIOD_ do in kondo?
Filter projects to those not modified for at least the specified period (e.g., 3months, 1year).