Sub topic 2
Using the Built-In Recommendations
Assume you know basic Finder and System Settings navigation. Terminal commands are optional, but they help confirm what macOS reports.
Using the Built-In Recommendations
Open Apple menu > System Settings > General > Storage. macOS shows recommendations before the category list:
- Store in iCloud can move selected files or photos to iCloud when space is needed. Check the iCloud plan and local-copy behavior first.
- Optimize Storage can remove watched TV or movie downloads and keep only recent email attachments.
- Empty Trash Automatically removes items after 30 days.
- Reduce Clutter helps review large files, downloads, and unsupported applications.
These options reduce clutter without requiring you to guess which system files are safe to remove. Read each description before enabling it, especially on a Mac shared with other users.
Finding Large Files with Finder and Storage Settings
In Storage, select Documents or Reduce Clutter, then review files by size. Finder can also search the current folder:
- Open your home folder.
- Press Command-F.
- Choose This Mac.
- Add a filter for File Size and set a useful threshold, such as 1 GB.
- Confirm the file's location and whether you still need it.
Downloads, old disk images, video exports, and virtual machines are common large items. Move files to an external backup or delete them only after checking their contents.
Finding Large Files and Folders in Terminal
Open Terminal and inspect before removing anything:
df -h /System/Volumes/Data
du -h -d 1 ~ 2>/dev/null | sort -hr | head -n 10
find ~ -type f -size +1G -exec ls -lh {} + 2>/dev/nulldf reports free space on the data volume. du summarizes folders. find lists files larger than 1 GB. These commands do not delete files.
Deleting Safely
Keep a current Time Machine backup or another tested copy before deleting personal files. Prefer Finder and the Trash so you can recover an accidental deletion. Leave /System, /private, and unfamiliar items in ~/Library alone. Do not delete files merely because they are large or classified as System Data.
After deletion, empty the Trash only when you are sure. Recheck Storage and df -h; space may not change immediately because macOS updates its accounting asynchronously.
Exercise
Which command can show the ten largest first-level folders in your home folder without deleting anything?
Show answer
du -h -d 1 ~ 2>/dev/null | sort -hr | head -n 10