“最后”的时间墙(从时间A到B)似乎只能在几天内测量。例如,如果我想看看谁在最后一天登录服务器,我会写
最后-b 0 -t 1如果我想,比方说,发现……
从 man last :
man last
-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".
最简单的方法:获取30秒前登录的人员列表,并获取现在登录的人员列表。在新列表中找到不在旧列表中的人员。
TL; DR:是的, last 可以做到这一点。
last