grep -rni [검색어] [경로명 또는 파일명]
r : 하위디렉토리까지 검색
n: 파일의 몇번째 라인에 있는지 표시
i : 검색어를 대소 문자 구분없이 검색
검색된 행 번호의 열을 보기 ( more : 출처 http://dump.com.ne.kr/linux/more.html )
예) 로그 위치 확인 후 파일 보기
grep -ni "===== HeaderParamInfo >>>>>" 로그파일명
more +5460 로그파일명 => space 으로 가능, Q : 종료
참고 (tail : tial -f 파일명 )
http://wingh.egloos.com/viewer/4773020
* 마지막 100줄 보기
==> tail -n 100 파일명
출처 - http://jjh1626.blog.me/60105778957
history : 최근 명령어 목록 보기
r : 이전 명령 실행
r history번호
'웹서버(톰캣,UNIX등)' 카테고리의 다른 글
[error]org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filter (0) | 2014.02.06 |
---|---|
[unix] profile 에 alias 파라미터 넣는 방법 (1) | 2014.01.23 |
[unix] 서버에서 alias 를 통한 간단한 명령 (0) | 2014.01.23 |
jsp파일 컴파일된 Java 파일 위치 (0) | 2014.01.17 |
web.xml 등등 설정 (0) | 2013.10.25 |