Log Out User or Reboot from Terminal

Mindwatering Incorporated

Author: Tripp W Black

Created: 09/02/2016 at 12:49 AM


OS X Tips & Hints
General Mac Tips

Have stuck finder. Would like to force logout rather than crash computer.

Issue the following command to log-out the user username:
$ sudo launchctl bootout gui/$(id -u <username>)

Replace <username> with your login ID.

Reboot Solution:
$ sudo reboot

previous page