From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 316CE38582A4; Thu, 1 Feb 2024 11:45:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 316CE38582A4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706787910; bh=EXW+mduMxAv2zKFRE8zXCoNmgYz7aCReQy6ccvKjpig=; h=From:To:Subject:Date:From; b=dzYy3m8mtCC7411JlRiaF4BeGRCs6u+LuPwOHAVI2iOtNQYK5Lypr4dy5lvGRXZYC 2cIg6NrThvnQ3B9zsfINJb3HUFlttYTiKsGpZpLpWrYXzqJNZ5Dvze/I8EZcy9ekeb 8S1EhpsezQzyqiZjhIlGPHJ/W5v5+Koa7vydzm1k= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: document showing command line on ps -f X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: 2e7f7b96e5f1ca788e3f4589afaaa705b20051c0 X-Git-Newrev: 76760707ec97d294b16c37712926e5d1ac52026e Message-Id: <20240201114510.316CE38582A4@sourceware.org> Date: Thu, 1 Feb 2024 11:45:08 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D76760707ec9= 7d294b16c37712926e5d1ac52026e commit 76760707ec97d294b16c37712926e5d1ac52026e Author: Corinna Vinschen AuthorDate: Thu Feb 1 12:44:28 2024 +0100 Commit: Corinna Vinschen CommitDate: Thu Feb 1 12:44:28 2024 +0100 Cygwin: document showing command line on ps -f =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/doc/utils.xml | 5 +++-- winsup/utils/ps.cc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/winsup/doc/utils.xml b/winsup/doc/utils.xml index 692dae38f5b4..1d3fe909b0d2 100644 --- a/winsup/doc/utils.xml +++ b/winsup/doc/utils.xml @@ -2496,7 +2496,7 @@ $ profiler du -khs . -a, --all show processes of all users -e, --everyone show processes of all users - -f, --full show process uids, ppids + -f, --full show process uids, ppids and command line -h, --help output usage information and exit -l, --long show process uids, ppids, pgids, winpids -p, --process show information for specified PID @@ -2532,7 +2532,8 @@ With no options, ps outputs the long format by default -e option, all user's processes (and system proce= sses) are listed. There are historical UNIX reasons for the synonomous opt= ions, which are functionally identical. The -f option - outputs a "full" listing with usernames for UIDs. The + outputs a "full" listing with usernames for UIDs and the command line + of the process, rather than just the full path to the executable. The -l option is the default display mode, showing a "long" listing with all the above columns. The other display option = is -s, which outputs a shorter listing of just PID, = TTY, diff --git a/winsup/utils/ps.cc b/winsup/utils/ps.cc index 3bc8afed4062..196579c581b5 100644 --- a/winsup/utils/ps.cc +++ b/winsup/utils/ps.cc @@ -110,7 +110,7 @@ Report process status\n\ \n\ -a, --all show processes of all users\n\ -e, --everyone show processes of all users\n\ - -f, --full show process uids, ppids\n\ + -f, --full show process uids, ppids and command line\n\ -h, --help output usage information and exit\n\ -l, --long show process uids, ppids, pgids, winpids\n\ -p, --process show information for specified PID\n\