複製鏈接
請複製以下鏈接發送給好友

last

(liunx基本命令)

鎖定
last是liunx基本命令,使用權限是所有使用者。
外文名
last
使用權限
所有使用者
使用方式:shell>> last [options]
説明:顯示系統開機以來或是從每月初登入者的訊息
把計?
-R 省略 hostname 的欄位
-num 展示前 num 個
username 展示 username 的登入訊息
tty 限制登入訊息包含終端機代號
範例:
shell>> last -R -2
johnney pts/1 Mon Aug 14 20:42 still logged in
johnney pts/0 Mon Aug 14 19:59 still logged in
wtmp begins Tue Aug 1 09:01:10 2000 ### /var/log/wtmp
shell>> last -2 minery
minery pts/0 140.119.217.115 Mon Aug 14 18:37 - 18:40 (00:03)
minery pts/0 140.119.217.115 Mon Aug 14 17:22 - 17:24 (00:02)
wtmp begins Tue Aug 1 09:01:10 2000
《Bloodline》中的last