On macOS (eg. Mojave 10.14), what is the difference between the diskutil unmount
and diskutil eject
commands?
For example, if I want to execute this from the command line (eg. bash in terminal), but I want to have the same, ‘safe’ result as though I had clicked the eject icon in the Finder:
- which command(s) should I use (and why)?
- what are the differences and side-effects between these two?