How to check your Intel and M1 Mac’s SSD health using Terminal

This is a fair amount of work, but I think it’s an excellent learning exercise and you’ll end up with some Terminal experience, an install of Homebrew (a package manager that comes up a lot if you want to install open source stuff), and some info on the health of your Mac’s SSD.