Linux 指令篇:使用者资讯与管理--last

看哪这人 · 2013-07-31 11:07 · Views63

 名称: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 

Comments0 条

No comments yet.
Loginto comment.