Document -U switch (displays processes belonging to given user/uid).

Reported in PR 8943 by WL <wliao@dura.spc.uchicago.edu>
This commit is contained in:
hubertf 1999-12-04 01:23:09 +00:00
parent 08d1d1b378
commit b8a04b1a7e
2 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: ps.1,v 1.32 1999/12/03 02:16:41 simonb Exp $
.\" $NetBSD: ps.1,v 1.33 1999/12/04 01:23:09 hubertf Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@ -61,6 +61,9 @@
.Op Fl t Ar tty
.Ek
.Bk -words
.Op Fl U Ar username
.Ek
.Bk -words
.Op Fl W Ar swap
.Ek
.Nm ""
@ -158,6 +161,11 @@ with the standard input.
.It Fl t
Display information about processes attached to the specified terminal
device.
.It Fl U
Displays processes belonging to the user whose username or uid has
been given to the
.Fl U
switch.
.It Fl u
Display information associated with the following keywords:
user, pid, %cpu, %mem, vsz, rss, tt, state, start, time and command.

View File

@ -1,4 +1,4 @@
/* $NetBSD: ps.c,v 1.33 1999/12/03 02:16:41 simonb Exp $ */
/* $NetBSD: ps.c,v 1.34 1999/12/04 01:23:09 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94";
#else
__RCSID("$NetBSD: ps.c,v 1.33 1999/12/03 02:16:41 simonb Exp $");
__RCSID("$NetBSD: ps.c,v 1.34 1999/12/04 01:23:09 hubertf Exp $");
#endif
#endif /* not lint */
@ -559,7 +559,7 @@ usage()
(void)fprintf(stderr,
"usage:\t%s\n\t %s\n\t%s\n",
"ps [-aChjKlmrSTuvwx] [-O|o fmt] [-p pid] [-t tty]",
"[-M core] [-N system] [-W swap]",
"[-M core] [-N system] [-W swap] [-U username]",
"ps [-L]");
exit(1);
/* NOTREACHED */