The other day a client contacted me panicking about one his new macOS running out of disk space. He told me his System Data storage shows over 300GB of space. I quickly remembered a related issue on older macs on how to clean system data storage using the terminal.
du -sh - Displays usage info for each file and directories.
df -h - Displays in human readable info on file system disk usage
Check the man pages for more details about the above commands.
To start to clean System Data storage using the Terminal I had to:
In order to gain access to other users directories. So, I went to the only user for this mac:
I noticed the user’s Library folder was HUGE. Then I went for it:
Ran the below du -sh * to get all folders and their respective size. Wow! ScreenRecordings was taking a huge amount of space.
sh-3.2# du -sh *
188K Application Scripts
5.5G Application Support
0B Autosave Information
In this case ScreenRecordings solve the issue. Other locations you can check are:
Remember to contact me if you have any questions or want to collaborate. Thanks!