When I try to log out on a Mac, I often get a message, such and such an application "interrupted logout". I would like to "force" log out, but I don't have administrative privileges. Since I don't have administrative privileges, I must go into the command prompt, find the PID of that application, kill the application, and then log out. This is very time consuming if there are, say, 10 instances of this application running. Is there an easier way of doing this, short of holding the power button for 5 seconds?

  • How do you initially try logging out? Using the logout option under the Apple menu? – jmh Aug 20 '19 at 2:37
  • Yes, that's how. – Alex Aug 20 '19 at 3:13
  • killall(1) is your friend. – Spiff Aug 20 '19 at 4:29
  • @Spiff -bash: syntax error near unexpected token '1' – Alex Aug 20 '19 at 10:08
  • @Alex Oh, sorry I was unclear. I was using an old Unix greybeard shorthand expression "commandName(n)", which means "the command named commandName, whose documentation can be found in section n of the Unix manual. Section 1 of the Unix manual is where all the command-line commands useful to all users (not just administrators) are documented. So since killall is useful to all users, it's documented in section 1. – Spiff Aug 22 '19 at 17:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.