Linux

로그인 된 사용자 확인 법

졸린하루 2017. 6. 7. 11:04

[root@test etc]# last
root     pts/0        192.168.10.1     Wed Jun  7 09:59   still logged in  
root     tty1                          Wed Jun  7 09:58   still logged in  
reboot   system boot  3.10.0-327.el7.x Wed Jun  7 09:58 - 11:02  (01:04)   
root     pts/2        192.168.10.1     Thu Feb 23 15:13 - crash (103+18:44)
root     pts/1        192.168.10.101   Thu Feb 23 13:36 - 17:24  (03:47)   
root     pts/0        192.168.10.1     Thu Feb 23 09:55 - crash (104+00:02)
reboot   system boot  3.10.0-327.el7.x Thu Feb 23 09:05 - 11:02 (104+01:57)
root     pts/0        192.168.10.1     Wed Feb 22 15:15 - crash  (17:50)   
reboot   system boot  3.10.0-327.el7.x Wed Feb 22 15:14 - 11:02 (104+19:48)
root     tty1                          Wed Feb 22 15:10 - 15:11  (00:01)   
reboot   system boot  3.10.0-327.el7.x Wed Feb 22 15:09 - 15:11  (00:01)   

 

wtmp begins Wed Feb 22 15:09:58 2017

 

로그인 사용자만 확인

 

[root@test etc]# last |grep logged
root     pts/0        192.168.10.1     Wed Jun  7 09:59   still logged in  
root     tty1                          Wed Jun  7 09:58   still logged in