Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
An independent mind...
  • Portfolio
  • Posts
  • Categories
  • Tags
  • About
    Francis T. O'Donovan

    Francis T. O'Donovan

    Data Science Manager at Hospital IQ – Planet discoverer, researcher, developer, geek.

    • Boston, MA
    • Website
    • Email
    • Bitbucket
    • GitHub
    • KeyBase
    • LinkedIn
    • StackOverflow
    • Twitter
    • Email

    Mac: Logout a user from the command line

    less than 1 minute read

    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.

    Tags: mac, til

    Categories: til

    Updated: April 7, 2021

    Twitter Facebook LinkedIn
    Previous Next

    Comments

    You May Also Enjoy

    Nix Split A File By Line Number

    less than 1 minute read

    Nix: Convert reStructuredText to Markdown

    less than 1 minute read

    I’ve used pandoc a lot before to convert Markdown files to PDFs. I just found out it can also convert reStructuredText text files to Markdown format:

    Nix: Get source directory of a script within the script

    less than 1 minute read

    ```bash #!/bin/bash

    Bash: Escaping strings easily

    less than 1 minute read

    Enter a line of Bash starting with a # comment, then run !:q on the next line to see what that would be with proper Bash escaping applied.

    • Website
    • Email
    • Bitbucket
    • GitHub
    • KeyBase
    • LinkedIn
    • StackOverflow
    • Twitter
    • Feed
    © 2021 Francis T. O'Donovan. Powered by Jekyll & Minimal Mistakes.