In other words:
What is the best way to achieve step 4?
At any time, you can log out of your user account on your Mac. On your Mac, choose Apple menu > Log Out. If you don't want app windows that are open to reopen when you log back in, deselect “Reopen windows when logging back in.”
There's also the shortcut Command + Shift + Option + Q to log out without confirmation, but it doesn't help when you have unsaved documents pre-10.7; it just avoids needing to hit Command + Q repeatedly.
sudo launchctl bootout user/$(id -u <username>)
Replace <username>
with the target user's user name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With