티스토리 뷰
tail 명렁어로 log를 보는법
pi@raspberrypi:/var/log $ cd /var/log
pi@raspberrypi:/var/log $ ls
Xorg.0.log auth.log daemon.log fontconfig.log messages wtmp
Xorg.0.log.old boot.log debug kern.log samba
alternatives.log bootstrap.log dpkg.log lastlog syslog
apt btmp faillog lightdm user.log
pi@raspberrypi:/var/log $ tail -f auth.log
Dec 11 11:08:22 raspberrypi sshd[2841]: Server listening on 0.0.0.0 port 22.
Dec 11 11:08:22 raspberrypi sshd[2841]: Server listening on :: port 22.
Dec 11 11:08:22 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Dec 11 11:08:27 raspberrypi sshd[2845]: Accepted password for pi from 124.66.181.145 port 43777 ssh2
Dec 11 11:08:27 raspberrypi sshd[2845]: pam_unix(sshd:session): session opened for user pi by (uid=0)
Dec 11 11:08:27 raspberrypi systemd-logind[332]: New session c10 of user pi.
Dec 11 11:08:28 raspberrypi sshd[2856]: Received disconnect from 124.66.181.145 port 43777:11: disconnected by user
Dec 11 11:08:28 raspberrypi sshd[2856]: Disconnected from 124.66.181.145 port 43777
Dec 11 11:08:28 raspberrypi sshd[2845]: pam_unix(sshd:session): session closed for user pi
Dec 11 11:08:28 raspberrypi systemd-logind[332]: Removed session c10.
'Linux > 명령어 (command)' 카테고리의 다른 글
netstat , lsof (port확인) (0) | 2021.01.06 |
---|---|
service start/stop (0) | 2017.12.11 |
mount nfs하기 (0) | 2017.12.08 |
port 번호 보기 (0) | 2017.11.23 |
iconv (encoding) (0) | 2017.09.15 |