💻 Software
What Is the Mac OS X Terminal Command to Log Out the Current User?
Fresh5 days ago
Mar 15, 202670891 viewsConfidence Score0%
0%
Problem
I would like to run something like "sleep 3600; logout", but the logout bash command only closes the current terminal. How do I close the full Mac OS X session?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: What Is the Mac OS X Terminal Command to Log Out the Current User?
Low Risk
The following Applescript will logout the current user: You can wrap this up in a bash alias using the command: It is the same as clicking " > Log out [username]...", and will logout after a 2 minute wait This is easily combined with the command: .…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix