lastコマンドは、最近ログインしたユーザーリストを表示するコマンドです。
「w」もログ表示コマンドです。ログイン状況の表示ができます。
$ last
root pts/0 xxxxxxx.yyy Wed Jan 8 11:49 still logged in
root pts/0 xxxxxxx.yyy Wed Jan 8 11:05 – 11:34 (00:28)
root pts/0 xxxxxxx.yyy Tue Jan 7 13:04 – 13:33 (00:29)
root pts/0 xxxxxxx.yyy Mon Jan 6 23:56 – 23:57 (00:01)
last -x
シャットダウン・ランレベル変更の記録も表示します(オプション -x