Log Out User or Reboot from Terminal

Mindwatering Incorporated

Author: Tripp W Black

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

 

Category:
OS X Tips & Hints
General Mac Tips

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

Solution:
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