From 76760707ec97d294b16c37712926e5d1ac52026e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 1 Feb 2024 12:44:28 +0100 Subject: Cygwin: document showing command line on ps -f Signed-off-by: Corinna Vinschen --- 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 692dae3..1d3fe90 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 processes) are listed. There are historical UNIX reasons for the synonomous options, 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 3bc8afe..196579c 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\ -- cgit v1.1