Skip to content

Instantly share code, notes, and snippets.

@ntrogers
Last active September 11, 2017 21:46
Show Gist options
  • Save ntrogers/0395c233fa45410918acd2e3f9f7e1cf to your computer and use it in GitHub Desktop.
Save ntrogers/0395c233fa45410918acd2e3f9f7e1cf to your computer and use it in GitHub Desktop.
[sh - Get Current user] Get currently logged in user #macOS #Bash
stat -f%Su /dev/console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment