---
title: "Check disk space on Mac in Terminal: 8 useful commands"
description: "df, du, diskutil and tmutil show exactly where your space went, including hidden folders Finder won’t show. Copy-paste commands with what each one tells you."
url: https://tidymac.space/guides/check-disk-space-mac-terminal/
updated: 2026-10-02
---

[Home](/) [Guides](/guides/) Check disk space on Mac in Terminal

# How to check disk space on a Mac in Terminal

df, du, diskutil and tmutil show exactly where your space went, including hidden folders Finder won’t show. Copy-paste commands with what each one tells you.

6 min readUpdated October 2, 2026By the Tidy Mac team

Short answer

Use `df -h /` for free space, `du -sh ~/Library/* | sort -rh | head` for the biggest Library folders, `du -sh ~/.[!.]* | sort -rh | head` for hidden folders, `diskutil apfs list` for how macOS splits the disk, and `tmutil listlocalsnapshots /` for Time Machine snapshots.

**Skip the manual steps.** Tidy Mac finds this and every other hidden space hog on your Mac in under a minute.

[Download free](/download/TidyMac.dmg)[Buy · $9.99 $29](/buy/)

The steps

1.  df -h / to see free space.
2.  du -sh ~/\* | sort -rh | head to find your biggest folders.
3.  du -sh ~/Library/\* | sort -rh | head for hidden Library data.
4.  du -sh ~/.\[!.\]\* | sort -rh | head for dot-folders.
5.  diskutil apfs list for macOS versus your data.
6.  tmutil listlocalsnapshots / for Time Machine snapshots.

## Free space

```
df -h /
```

"Avail" is what's free right now, without purgeable space. [Why that differs from Finder](/guides/purgeable-space-mac/)

## Your biggest folders

```
du -sh ~/* 2>/dev/null | sort -rh | head -15
```

## Hidden Library data (most of System Data)

```
du -sh ~/Library/* 2>/dev/null | sort -rh | head -15
du -sh ~/Library/Application\ Support/* 2>/dev/null | sort -rh | head -15
```

Without Full Disk Access for Terminal, some folders show "Operation not permitted". Grant it in System Settings › Privacy & Security › Full Disk Access.

## Hidden dot-folders

```
du -sh ~/.[!.]* 2>/dev/null | sort -rh | head -15
```

[What these folders are](/learn/hidden-dot-folders-mac-home/)

![](/img/brand/tidy-128.png)

### Let Tidy Mac do this for you

See every part of your storage explained, and clear junk to the Trash with Undo. $9.99 $29 once, 2 Macs.

[Download](/download/TidyMac.dmg) [Buy Tidy Mac · $9.99 $29](/buy/)

## macOS versus your data

```
diskutil apfs list
```

Look at "Capacity Consumed" for each volume: **System**, **Preboot**, **Recovery** and **VM** are macOS; **Data** is yours.

## Time Machine local snapshots

```
tmutil listlocalsnapshots /
```

## Paste your output, get an explanation

Run the Library command above and paste the result into our free [System Data explainer](/tools/system-data-explainer/). It runs in your browser and tells you what each folder is and whether it's safe to remove.

## Keep reading

[Why Finder, System Settings, Disk Utility and Terminal show different free space on a Mac](/guides/finder-disk-utility-free-space-different/)[Mac storage stuck on “Calculating…”: why it happens and how to fix it](/guides/mac-storage-stuck-calculating/)[System Data explainer](/tools/system-data-explainer/)[What is “System Data” on a Mac, and why is it so big?](/learn/what-is-system-data-on-mac/)[How to find large files on your Mac](/guides/find-large-files-mac/)[“Not enough storage” when updating macOS: how to free the space fast](/guides/not-enough-space-for-macos-update/)

Share:[X](https://x.com/intent/post?text=How%20to%20check%20disk%20space%20on%20a%20Mac%20in%20Terminal&url=https%3A%2F%2Ftidymac.space%2Fguides%2Fcheck-disk-space-mac-terminal%2F)[Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Ftidymac.space%2Fguides%2Fcheck-disk-space-mac-terminal%2F&title=How%20to%20check%20disk%20space%20on%20a%20Mac%20in%20Terminal)[Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Ftidymac.space%2Fguides%2Fcheck-disk-space-mac-terminal%2F&t=How%20to%20check%20disk%20space%20on%20a%20Mac%20in%20Terminal)[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Ftidymac.space%2Fguides%2Fcheck-disk-space-mac-terminal%2F)

#### On this page

[Free space](#free-space)[Your biggest folders](#your-biggest-folders)[Hidden Library data (most of System Data)](#hidden-library-data-most-of-system-data)[Hidden dot-folders](#hidden-dot-folders)[macOS versus your data](#macos-versus-your-data)[Time Machine local snapshots](#time-machine-local-snapshots)[Paste your output, get an explanation](#paste-your-output-get-an-explanation)

**Tidy Mac**

See this on your own Mac in under a minute. $9.99 $29 once, 2 Macs.

[Download](/download/TidyMac.dmg)
