Created
May 27, 2020 23:38
-
-
Save nosrednawall/2f89e5ded721a9dfcc6446aa91abe45a to your computer and use it in GitHub Desktop.
listar usuários logados no linux
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
#!/bin/bash | |
awk -F";" '{for(i=1;i<=NF;i++){if ($i !~ /nologin/){print $1}}}' /etc/passwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment