Last active
March 27, 2019 01:39
-
-
Save peacefixation/e5c99092f766ba21a743821f3ce8e2a0 to your computer and use it in GitHub Desktop.
Find the active user by checking /dev/console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# format the output of stat and show the active user (as a string) | |
stat -f "%Su" /dev/console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment