Find what fills your disk with Space Lens
Space Lens answers one question: where did my storage go? It shows any folder or drive by size, biggest first, so you can dig down to the one folder that holds 40 GB and decide what to do with it.
Why free space disappears without a trace
Storage rarely goes in one big file. It goes into a project you forgot, a video library, a hidden folder in your home directory, a virtual machine, a pile of downloads. Finder and the Files app show the size of a folder only when you ask for each one separately.
A disk space analyzer does that work for you: it adds up every folder once and lists the biggest first. The important part is what happens next. Some folders are safe to remove and some are not, and a tool that lets you delete system folders is a risk.
How Space Lens works
- Start where you want. Begin with your home folder, another folder, an external or USB drive, or the whole startup disk on a Mac. On Ubuntu, pick your home folder, the system disk or another drive.
- Dig down by size. Click a folder to look inside it, biggest first. On a Mac you also get a chart of the folder’s contents, a search by name and a Quick Look preview. Show Hidden Files (⇧⌘.) hides or shows dotfiles.
- Tick what you do not need. Choose files or folders and move them to the Trash after one confirmation. Anything on an external drive goes to that drive’s own Trash.
- Undo if you change your mind. Undo puts the last move back where it was, as long as the items are still in the Trash.



Where Mac and Ubuntu differ
macOS
On a Mac, Space Lens draws a chart of the folder, and you can start from your home folder or the whole startup disk. Items in your home folder or on an external drive can be moved to the Trash.
Ubuntu
On Ubuntu, Space Lens is a list of folders by size. From the system disk it shows why each system folder stays and where cleaning is safe; system places are only shown, never removed. On a USB drive, items go to that drive’s own Trash.
What keeps it safe
- Space Lens only moves things to the Trash after you confirm, and Undo brings them back.
- System places are shown for information. On Ubuntu they are marked look only, with a reason.
- Keys, sign-ins and documents such as Mail, Messages and iCloud Drive are blocked, and folders you add to Exclusions (Never clean on Ubuntu) are never listed for removal.
- The block is checked again right before each move, not only when you scan.
The same from the terminal
Both systems have a read-only command for what Space Lens shows, and a command that moves the paths you name to the Trash.
| System | Command | What it does |
|---|---|---|
| macOS | cleanmate space [PATH] [--limit N] [--json] | What fills a folder, like Space Lens: its children by size, biggest first, and the folder total. PATH defaults to your home folder. |
| macOS | cleanmate trash [--yes] [--json] [--] PATH… | Moves exactly the paths you name to the Trash, with the safety rules of Space Lens. |
| Ubuntu | cm --json lens [--path DIR] [--limit N] | One folder, biggest first. movable: false means look only, and reason says why. |
| Ubuntu | cm --json places | Where Space Lens can start: home, the system disk, other disks. |
| Ubuntu | cm --json trash [--home-only] PATH… | Moves the paths you confirmed to the Trash, or tells you why one was refused. |
Questions
Is Space Lens a replacement for DaisyDisk?
It covers the same job, finding what fills a folder or disk, and it is free and open source. DaisyDisk is a paid, closed-source Mac app; the comparison page lists how they differ.
Can it scan the whole disk?
Yes. On a Mac you can start from the whole startup disk instead of your home folder. On Ubuntu you can start from the system disk or another drive.
Can I delete system folders with it?
No. System places are shown so you can see the size, and they are not moved. In your home folder and on external drives, you choose what goes to the Trash.
Does it work on an external drive?
Yes. Pick the drive as the start, and what you move goes to that drive’s own Trash, with Undo.
How do I see hidden folders on a Mac?
Press ⇧⌘. in Space Lens to show or hide dotfiles. Many large caches and tool folders are hidden ones.
Get CleanMate
Free and open source. Review every item before it is removed.
Open source — star it on GitHub: CleanMate for macOS · CleanMate for Ubuntu