UbuntuとCent OSがマンページで指定された時間ではなく、指定された時間にログインを表示してlast -t
実際に動作することに少し驚きました。up till
as of
Ubuntuのマニュアルページは次のとおりです。
-t YYYYMMDDHHMMSS
Display the state of logins as of the specified time. This is useful, e.g., to determine easily who was logged
in at a particular time -- specify that time with -t and look for "still logged in”.
ただし、実際の動作は次のとおりです。
# last -F -t 20150107000000 | grep pts
root pts/2 jp001.solidtunne Tue Jan 6 18:39:05 2015 - Tue Jan 6 18:40:34 2015 (00:01)
root pts/2 jp001.solidtunne Tue Jan 6 18:37:24 2015 - Tue Jan 6 18:37:41 2015 (00:00)
root pts/2 jp001.solidtunne Tue Jan 6 16:42:33 2015 - Tue Jan 6 16:43:49 2015 (00:01)
root pts/2 jp001.solidtunne Tue Jan 6 13:03:26 2015 - Tue Jan 6 13:07:02 2015 (00:03)
root pts/2 jp001.solidtunne Tue Jan 6 09:03:24 2015 - Tue Jan 6 09:03:54 2015 (00:00)
root pts/2 jp001.solidtunne Tue Jan 6 04:53:54 2015 - Tue Jan 6 04:54:07 2015 (00:00)
root pts/4 sf003.solidtunne Fri Jan 2 15:23:12 2015 - Fri Jan 2 15:23:51 2015 (00:00)
root pts/0 hk000.solidtunne Thu Jan 1 16:40:55 2015 - Thu Jan 1 16:41:21 2015 (00:00)
root pts/2 hk000.solidtunne Thu Jan 1 15:41:52 2015 - Thu Jan 1 15:42:02 2015 (00:00)
root pts/4 hk000.solidtunne Thu Jan 1 11:24:56 2015 - Thu Jan 1 13:40:40 2015 (02:15)
root pts/4 hk000.solidtunne Thu Jan 1 11:24:34 2015 - Thu Jan 1 11:24:48 2015 (00:00)
root pts/0 hk000.solidtunne Thu Jan 1 08:31:13 2015 - Thu Jan 1 08:31:25 2015 (00:00)
現在の日付は次のとおりです。
# date
Thu Jan 8 08:12:32 UTC 2015
Ubuntuバージョン:
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
コア:
# uname -a
Linux install 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Ubuntuのバグシステムでバグを開きました。https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1408605。しかし、人々はこのエラーに興味がないようで、Googleからこのエラーに関する情報をほとんど得られないようです。今混乱しています。何か逃したの?
ベストアンサー1
私はこのエラーが単にドキュメントエラーだと思います。
Ubuntu 14.10のバージョンutil-linux
(ソースlast
)は2.25です。
Fedora 21バージョンutil-linux
も2.25です。
man
Fedoraのページには次のように記載されていますlast
。
-t, --until time
Display the state of logins until the specified time.
これが実際の動作です。
util-linux
Ubuntu(またはDebian)とCentOSでこのページのバグを報告することをお勧めしますman
。