lc, short for Linux Cleaner, is a terminal disk usage analyzer that takes a different approach to identifying unnecessary files. Rather than simply ranking directories according to their size, it considers how long their contents have gone unused.
Inspired by ncdu, the program helps users distinguish between storage occupied by frequently accessed data and files that have not been touched for months or years. This makes it useful for identifying potential cleanup candidates on development machines, workstations, and servers.
The interface combines directory navigation with age-based information, allowing users to investigate older data before deciding whether to remove it.
This is free and open source software.
Key Features
- Ranks directories by the amount of storage occupied by files considered unused beyond a configurable age threshold.
- Colour-coded age indicators and usage bars distinguish older contents from recently accessed data.
- Switch between sorting by unused bytes, total size, name, item count, and age.
- Flat-list mode displays unused files throughout the selected directory hierarchy.
- Adjust the unused-file age threshold interactively without performing another filesystem scan.
- Choose between access time, modification time, or the newer of these timestamps when determining file age.
- Detects filesystem mount settings that may make access-time information unreliable.
- Parallel directory scanning with separate calculations for allocated disk usage and apparent file size.
- Avoids following symbolic links and accounts for hard links without double-counting their storage.
- Filters directory contents by name and supports excluding caches and specified file patterns.
- Export scan data and reopen saved results for subsequent inspection.
- Interactive deletion with confirmation prompts, progress information, and the ability to cancel remaining operations.
- Rescan directories, inspect file information, and open a shell from the browser.
Website: github.com/rollecode/lc
Support:
Developer: Rolle Laukkarinen
License: MIT License
lc is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| du alternatives | Programming Language | License |
|---|---|---|
| dust | Rust | Apache License 2.0 |
| duf | Go | MIT License |
| Duc | C | GNU Lesser General Public License v3 |
| Ncdu | C | GNU GPL v2.0 License |
| gdu | Go | MIT License |
| cull | Go | MIT License |
| dua | Rust | MIT License |
| erdtree | Rust | MIT License |
| pdu | Rust | Apache License 2.0 |
| vizex | Python | MIT License |
| godu | Go | MIT License |
| dutree | Rust | GNU General Public License v3 |
| space | Rust | MIT License |
| darya | Rust | GNU General Public License v3.0 |
| diskus | Rust | MIT License or Apache License 2.0 |
| NoxDir | Go | MIT License |
| mcdu | Rust | MIT License |
| dirstat-rs | Rust | MIT License |
| diskonaut | Rust | MIT License |
| bonsai | C++ | GNU General Public License v3.0 |
| diskard | Rust | MIT License or Apache License 2.0 |
| cdu | Perl | GNU General Public License v2.0 |
| tdu | Go | GNU General Public License v2 |
| duviz | Python | MIT License |
| dut | C | GNU General Public License v3.0 |
| whalespotter | Rust | MIT License |
| sn | Rust | BSD 3-Clause “New” or “Revised” License |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |



Please read our Comment Policy before commenting.