]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: who: document --users in manual
authorPádraig Brady <P@draigBrady.com>
Tue, 20 Jan 2026 17:43:32 +0000 (17:43 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 21 Jan 2026 13:51:58 +0000 (13:51 +0000)
* doc/coreutils.texi (who invocation): Mention that --users
is equivalent to -u.
* src/who.c (usage): Mention -u shows idle time.

doc/coreutils.texi
src/who.c

index 6a9fc54389f2001abfd4be0f54d896ed396eba37..cea9efb842e5c3b766a41fd85fd65f3dacf26b8d 100644 (file)
@@ -15707,7 +15707,7 @@ Overrides all other options.
 Print the current (and maybe previous) run-level of the init process.
 
 @optItem{who,-s,}
-@optItem{who,--short,}
+@optItemx{who,--short,}
 Ignored; for compatibility with other versions of @command{who}.
 
 @optItem{who,-t,}
@@ -15715,6 +15715,7 @@ Ignored; for compatibility with other versions of @command{who}.
 Print last system clock change.
 
 @optItem{who,-u,}
+@optItemx{who,--users,}
 @cindex idle time
 After the login time, print the number of hours and minutes that the
 user has been idle.  @samp{.} means the user was active in the last minute.
index dbf67297f748f5d8d8ce11e9bba97230400719ce..65c9e67888bb2b70c9ea73b48b7074d19c3e371a 100644 (file)
--- a/src/who.c
+++ b/src/who.c
@@ -679,7 +679,7 @@ Print information about users who are currently logged in.\n\
   -T, -w, --mesg    add user's message status as +, - or ?\n\
 "));
       oputs (_("\
-  -u, --users       list users logged in\n\
+  -u, --users       list users logged in, including idle time\n\
 "));
       oputs (_("\
       --message     same as -T\n\