Forum Discussion
How to remove junk files on mac and free up storage space?
If you're looking for a powerful, completely free way to remove junk files on Mac, the open-source command-line tool Mole is an excellent choice. Think of Mole as a digital Swiss Army knife for your Mac. It's a free utility that you run directly from the Terminal (your Mac's command-line interface).
It's called "Mole" because it digs deep into your system to find and clear out hidden junk files that you might not even know exist.
Step 1: Install Mole
The easiest method is by using Homebrew (a package manager for Mac). If you don't have Homebrew, you can install it first, but it's a quick process . Open your Terminal app (found in Applications > Utilities) and run:
bash
brew install mole
Step 2: Run a Safe "Dry Run"
Before you actually delete anything, it's wise to see what Mole plans to do. To preview exactly which files the cleaner will target, use the -- dry- run option:
bash
mo clean -- dry- run
Step 3: Perform the Cleanup
Once you've reviewed the preview and are ready to proceed, simply run:
bash
mo clean
You might be prompted for your system password (using sudo), as the tool needs permission to access certain system files. Mole will then scan your system and remove junk files on Mac.