summaryrefslogtreecommitdiff
path: root/usr.bin/top/commands.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-10-07 06:26:13 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-10-07 06:26:13 +0000
commit2bccf344d8a3f9f34752e51ac50df53503c76f94 (patch)
tree0a07b2d089a5058b9680ac02f8bc303ab79cd6d9 /usr.bin/top/commands.c
parent21dda97f12ab9e6f16723ca5550c186a3b677b32 (diff)
introduce -p option and p command to only show a single process.
From Patrick Latifi. ok deraadt@ millert@
Diffstat (limited to 'usr.bin/top/commands.c')
-rw-r--r--usr.bin/top/commands.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/top/commands.c b/usr.bin/top/commands.c
index 99a5ec27bd7..a4a6f58b10b 100644
--- a/usr.bin/top/commands.c
+++ b/usr.bin/top/commands.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commands.c,v 1.15 2004/06/27 00:48:22 marc Exp $ */
+/* $OpenBSD: commands.c,v 1.16 2004/10/07 06:26:12 otto Exp $ */
/*
* Top users/processes display for Unix
@@ -92,7 +92,8 @@ show_help(void)
"k - kill processes; send a signal to a list of processes\n"
"n or # - change number of processes to display\n", stdout);
fputs(
- "o - specify sort order (size, res, cpu, time)\n",
+ "o - specify sort order (size, res, cpu, time)\n"
+ "p - display one process (+ selects all processes)\n",
stdout);
fputs(
"r - renice a process\n"