linux 登入/登出日志

last command:
-F, --fulltimes
    Print full login and logout times and dates.
-n, --limit number
    Tell last how many lines to show.
-f, --file file
    Tell last to use a specific file instead of /var/log/wtmp.  
    The --file option can be given multiple times, and all of the specified files will be processed.
last practice:

last | head -n 50
or
last -f -F wtmp

参考文献:
last turtorial for beginner:
https://www.howtoforge.com/linux-last-command/
last result descriptiion:
https://unix.stackexchange.com/questions/36287/meanings-of-the-columns-in-last-command

发布了43 篇原创文章 · 获赞 2 · 访问量 3368

猜你喜欢

转载自blog.csdn.net/songpeng26/article/details/105200700