less than 1 minute read

This is top image
Logout user from terminal.

You don’t have to use the macOS UI to logout a user. Instead, in the Terminal use:

1
2
3
sudo launchctl bootout gui/$(id -u <username>)
# or
sudo launchctl bootout user/$(id -u <username>)

Works on macOS 10.11.x or later.

Via apple.stackexchange.com.

Leave a Comment

Your email address will not be published. Required fields are marked *

Loading...