Mac OS X

Introduction

While many might realize it (or admit it), Mac OS X is essentially a BSD kernel and tools.  Apple has made many modifications, so some might not consider it "unix-y" much any more.  Kinda like Android and Chrome OS.  Anyways...

Free Disk Space

In general, do not screw up your Mac OS X device by going to folders and removing things.  This is dangerous if you are not an expert.  And be cynical if someone suggests to do so, whether or not the claim to be an expert.   For instance, never delete the operating system's cache folders.  You may end up with an unusable system.

Option #1, Use Storage Management:  This may sound odd from me, but for Mac OS X, the best place to start is Apple's own tools.  There are a few ways to get there, but I use Apple  Menu -> About This Mac -> Storage -> Manage...  You can also get to it via Applications -> Utilities -> System Information -> Window menu -> Storage Management.

Once you get there, be careful, but look around for things to remove.  For instance, I often reload my friend's iPhones, iPads, etc.  So I often have to remove the iOS downloads.  These can be > 10 GB per version.  

Option #2, Cleaning Cruft:  The steps below cleans up cache and other general "cruft" for High Sierra (10.3) to Big Sur (11.0).  With Big Sur, there are new permissions in /private/var/protected/ that make me think the size in step #1 is not accurate.  

When doing this on Mac OS X 10.3 to 10.5, I could recover most of the 5GB reported.  On Mac OS 11.0, the reporting of 3.5GB did not really change, but I still recovered about 2GB of space.  Neither is much, but with a tight 64GB drive, every bit helps.

Option #3, Cleaning Backups: These steps will help cleanup Time Machine.  It is only really necessary if something goes wrong; which Apple would never admit.  You may not get too much space cleaned up.  

More important is to be cautious; the snapshots you are about to remove are backups.  Removing snapshots will affect the ability to restore files in the snapshot (local drive) and not on the Time Machine volume (external drive).  If all you are worried about it losing current files, make sure that a full backup has completed to an external drive.  DO NOT SKIP step #2!

There used to be a way to "tune" Time Machine to not use local snapshots.  I'm not sure when that went away, but it is not in in Catalina nor Big Sur.  If you want to "fine tune" step #4, check out the "thinlocalsnapshots" verb. 

Networking

Change the system's hostname via the command line.  Does it all locations, including System Preferences -> Sharing.

sudo scutil --set HostName "<put name here>"

.