Quick System Checks
A few commands to check on your Mac's status.
Disk Space
See disk usage in human-readable format:
df -h
df = "disk free." The -h flag makes sizes human-readable (GB instead of bytes).
See what's using space in current folder:
du -sh *
du = "disk usage." -s gives a summary (not every subfolder). -h makes it human-readable. * means all items in the current folder.
System Info
See macOS version:
sw_vers
sw_vers = "software version." Shows your macOS version, build number, and name.
See your IP address:
ipconfig getifaddr en0
ipconfig manages network settings. getifaddr = "get interface address." en0 is your primary network connection (usually Wi-Fi). If this shows nothing, try en1 instead.
Key Takeaway
df -h shows disk space, du -sh * shows folder sizes. Quick ways to see where your space is going.