Last active
May 7, 2019 02:30
-
-
Save o0-o/e542ab7fcbc4c8fd3bb6a73d6d1d7120 to your computer and use it in GitHub Desktop.
[User] Prints current user #Shell
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
# user.sh | |
whoami 2>/dev/null || | |
exit 1 #failure | |
exit 0 #success |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment