리눅스상에서의 history. 많이들 이용하시나요 ? end user가 사용하다가 갑자기 잘못 되었을 때. 해킹을 당했을 때. 등 많이 쓰입니다. 하지만.. 일반적인 history은 기록은 시간을 볼 수가 없습니다. 그러기 때문에 history로 분석할 때 매우 힘들었죠. 하지만.. 이제 쉽게 해보도록 하겠습니다. [root@seob ~]# history | tail 992 ls 993 cd $WINE 994 ls 995 ln -s wine64 wine 996 ls 997 cd / 998 ls 999 su - 1000 history 1001 history | tail 기존의 history 입니다. 그냥 순번대로 명령어만 보입니다. 시간 기록을 하기 위해 아래와 같이 해주세요. [root@seob ~]# ..
리눅스 로그 종류 1. secure 로그 - 로그파일 위치 : /var/log/secure- telnet, ssh 접속에 대한 유저 로그인 인증 기록 [root@cafe24 ~]# cat /var/log/secure Jan 27 07:08:38 localhost sshd[23584]: input_userauth_request: invalid user nagios Jan 27 07:08:38 localhost sshd[23581]: pam_unix(sshd:auth): check pass; user unknown Jan 27 07:08:38 localhost sshd[23581]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty..