- 论坛徽章:
- 0
|
如何查看用户的登录日志及相关操作
------------------------------------------------------------------
Commands Reference, Volume 3
-------------------------------------------------------------------------------
last Command
Purpose
Displays information about previous logins.
Syntax
last [ -f FileName ] [ -Number ] [ Name ... ] [ Terminal ... ]
Description
The last command displays, in reverse chronological order, all previous logins
and logoffs still recorded in the /var/adm/wtmp file. The /var/adm/wtmp file
collects login and logout records as these events occur and holds them until the
records are processed by the acctcon1 and acctcon2 commands as part of the daily
reporting procedures. When the time daemon, timed, changes the system time, it
logs entries in wtmp under the pseudo-user "date". An entry starting with "date
man35518 (74%) |
|