How to list all OS users on RH 9 ?
Bob McClure Jr
robertmcclure at earthlink.net
Mon Jun 28 03:01:57 UTC 2004
On Mon, Jun 28, 2004 at 10:12:39AM +0800, Yan Peng wrote:
> redhat-install-list:
>
> On solaris, there is one command listusers to list all OS users. I'd like to know what command can do the same work on RH 9 ?
> Many thanks.
>
>
>
> Yan Peng
> yanpeng at mx.cei.gov.cn
> 2004-06-28
I don't know of one, but this awk one-liner will do it:
awk -F: '{if($3>499)print $1}' /etc/passwd
Cheers,
--
Bob McClure, Jr. Bobcat Open Systems, Inc.
robertmcclure at earthlink.net http://www.bobcatos.com
A Bible in the hand is worth two on the shelf.
More information about the Redhat-install-list
mailing list