Hi everybody,I would like to know what the commands given to the terminal that will let you know how many users are allready in your system account,I am using Ubuntu,thanks for anybody help.
How to know how many users are added to your system account ?
Collapse
X
-
Tags: None
-
OK, I'm guessing you're using bash as your standard shell and nobody has changed it. In that case, this should show you the registered human users:Code:cat /etc/passwd | grep /bin/bash | cut -d: -f1
Code:cat /etc/passwd | grep -c /bin/bash
If you don't know if any of your users have changed their shell, you can also try this:Code:cat /etc/passwd | grep /home | cut -d: -f1
Code:cat /etc/passwd | grep -c /home
Code:cat /etc/passwd | cut -d: -f1
Code:cat /etc/passwd | grep -c :
Greetings,
Nepomuk
Comment