Last active
February 17, 2016 13:01
-
-
Save arieljannai/f4bbe6e58f762d48855c to your computer and use it in GitHub Desktop.
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
# measure command time in seconds (replace <command>) | |
start=`date +%s%N`;<command>;end=`date +%s%N`;echo `expr $end - $start`/1000000000 | bc | |
# get all groups | |
compgen -g | |
getent group | |
cut -d: -f1 /etc/group | |
# get all users | |
compgen -u | |
getent passwd | |
cut -d: -f1 /etc/passwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment