1834009 Members
1642 Online
110063 Solutions
New Discussion

number of users

 
SOLVED
Go to solution
Adam W.
Valued Contributor

number of users

Anyone, What is the easiest way I can find the total number of accounts on my HP-UX 11.11 server? I know I can count the entries in /etc/passwd but this is a VERY long list. So for fututre reference is their a command to run?
There are two types of people in the world, Marines and those who wish they were.
4 REPLIES 4
Court Campbell
Honored Contributor
Solution

Re: number of users

wc -l /etc/passwd
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Jeff_Traigle
Honored Contributor

Re: number of users

Let the computer count for you...

wc -l /etc/passwd
--
Jeff Traigle
Prashanth Waugh
Esteemed Contributor

Re: number of users

Hi Adam

You can use
cat /etc/passwd |wc -l

Reagrds
Atul
For success, attitude is equally as important as ability
Adam W.
Valued Contributor

Re: number of users

Very good guys. I figured there was a VERY simple way to do it and I was just missing somehting. THANKS!
There are two types of people in the world, Marines and those who wish they were.