From: Benno Schulenberg Date: Thu, 17 Apr 2025 09:48:16 +0000 (+0200) Subject: last: (man) correct the descriptions of --present and --since X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1454725bd2c90f3c03c9a900a8e7a7fe8a94a3a;p=thirdparty%2Futil-linux.git last: (man) correct the descriptions of --present and --since Doing `last --present -24h` will show who was logged in around this time yesterday. But when doing (what according to the man page is equivalent) `last --since -24h --until -24h` nothing will be shown -- unless someone logged in exactly 24 hours ago to the second. So, correct the descriptions of --present and --since. This fixes #1896 (https://github.com/util-linux/util-linux/issues/1896). Reported-by: Finn Krein-Schuch Signed-off-by: Benno Schulenberg --- diff --git a/login-utils/last.1.adoc b/login-utils/last.1.adoc index 099b281cc..8da52c766 100644 --- a/login-utils/last.1.adoc +++ b/login-utils/last.1.adoc @@ -64,13 +64,14 @@ Like *--dns ,* but displays the host's IP number instead of the name. Tell *last* how many lines to show. *-p*, *--present* _time_:: -Display the users who were present at the specified time. This is like using the options *--since* and *--until* together with the same _time_. +Display the users who were present at the specified time. *-R*, *--nohostname*:: Suppresses the display of the hostname field. *-s*, *--since* _time_:: -Display the state of logins since the specified _time_. This is useful, e.g., to easily determine who was logged in at a particular time. The option is often combined with *--until*. +Display the state of logins since the specified _time_. +The option is often combined with *-t*/*--until* to cover a period. *-t*, *--until* _time_:: Display the state of logins until the specified _time_.