25

I need to free up space on my Mac and know there are a ton of hidden files that are eating up space (Logic for example downloads a lot of instruments... somewhere).

Is there any way I can create an interactive (or non-interactive) treemap of my hard drive?

Here is an example of a treemap from Wikipedia

Graphical representation of a treemap

5
  • @l'L'l Not quite a duplicate — most of those solutions included the accepted answer don't produce Treemaps.
    – grg
    Jan 21 '14 at 17:45
  • ^ see the second link.
    – l'L'l
    Jan 21 '14 at 17:46
  • However, the answers to both questions contain all the recent tree map type utilities that are in common use. What about your situation makes you think "tons of hidden files" are in play? Finder will show you folder sizes quite easily and you can navigate to locate things without needing any extra software.
    – bmike
    Jan 21 '14 at 18:46
  • To answer bmike, I use Xamarin, and each time I run debut on an app, temp files are created and remain May 29 '20 at 13:23
17

GrandPerspective can create a Treemap:

GrandPerspective screenshot

19

try

du -sh *  | grep -E "\dG"

to get all files and folders of size 1G and above. (Output will only show once du is done)

2
  • not include folder Feb 21 '19 at 13:26
  • this is awesome - returns files and folders above 1GB in the directory where its run. So we can run it at the top most level and traverse from there
    – Anupam
    Apr 15 at 4:31
12

You can use spotlight as well:

mdfind 'kMDItemFSSize > 2000000000'

Add or remove zeroes to get fewer or more files under the size limit, respectively.

2
2

I've had success using:

Disk Inventory X (free download)

enter image description here

It's like WinDirStat was on Windows.

2
  • It says that I can't install it because this app is coming from a non identified user: Impossible d'ouvrir "Disk Inventory X" car cette app provient d'un développeur non identifié Oct 8 '20 at 3:40
  • 1
    @DimitriKopriwa That has happened to me on Mac before. Hold the control key: kb.wisc.edu/helpdesk/page.php?id=25443#manual
    – Ryan
    Oct 8 '20 at 14:05
1

OmniDiskSweeper

shows you the files on your drive, largest to smallest

great free tool

-1

Clean Up Old and Large Files with CleanMyMac 3

The Large & Old Files module in CleanMyMac 3 makes finding space-hoggers on your Mac simple. Just run a scan to see all the files that are taking up the most space — and then clean them up.

enter image description here

How does the Large & Old Files module help me? Everyone has (at one time or another) thrown files into random folders. It’s easy for these files to take up gigabytes of space without even realizing it! CleanMyMac 3’s Large & Old Files scans your entire Mac and brings all these files to the surface. Plus, it lets you see what’s what, based on a file’s size, date last opened, and type.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .