Questions tagged «last»

2
在Linux上使用'last'命令获取登录年份数据
在Solaris上,命令'fwtmp'提供wtmp日志中的年份信息。例如: host # /usr/lib/acct/fwtmp < /var/adm/wtmpx > tmp_wtmpx_file host # head -1 tmp_wtmpx_file user123 sshd 1258 7 0000 0000 1226072918 230489 0 29 host123.desktop.ourhost.com Fri Nov 7 09:48:38 2008 在Linux上,“ last”输出的数据没有年份信息,我似乎无法在Linux上找到类似于“ fwtmp”的实用程序来添加年份数据。“ lastlog”命令在输出中包括year,但仅查找passwd文件中的用户(默认情况下不针对ldap或其他用户数据库)。Linux上是否有实用程序可以输出年份以及“ last”中的其他数据?
10 linux  logging  last 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.