[LBo] Re: How to let the system display number of users and groups?

Jan jvdstaaij at chello.nl
Fri Nov 3 17:00:57 CET 2006


Tim Cruikshank wrote:

> On November 3, 2006 09:53, Jan wrote:
>> Hello class,
>>
>> I don't seem to be able to solve two of the questions regarding Chapter
>> 3. How to let the system display the number of users and groups defined
>> on the system?
>>
>> I tried /etc/passwd and /etc/group, but that seems to be the wrong
>> approach.
>>
>> Can somebody please assist me on that? I am using SUSE 10.1.
>>
>> Thanks!
>>
>> Jan
> 
> This is supposed to be a learning exercise, so I'll start with just a
> hint. Try checking the manpage of cat, or cat --help.
> 
Hi Tim,

Do you mean cat -n passwd and cat -n group? If that's what you meant, I am a
bit ashamed I didn't think of that. As usual I was digging too deep ;-)

Jan




More information about the QnA mailing list