명령어

화면 출력 명령어

_주야 2011. 10. 26. 13:20
cat
- 파일 보기 명령어. 
   # cat -b test.log
      (옵션 -b : line number 표기)

more
- 파일의 내용을 화면 단위로 보여주는 명령어.
- 커서 이동 불가하며 엔터는 다음 한줄을, 스페이스는 다음 화면.
   # ls | more
   # cat -b test.log | more

grep
- 특정한 단어를 포함하는 행만 보여주는 명령어.
- 대소문 구분해서 검색한다.
   # cat test.log | grep Exception

head
- 출력하려는 파일의 앞부분 10줄만 보여주는 명령어.
  # head -f test.log
  # cat test.log | head

 tail
- 출력하려는 파일의 뒷부분 10줄만 보여주는 명령어.
   # tail -f test.log
   # cat -b test.log | tail


'명령어' 카테고리의 다른 글

Archive & Compress  (0) 2011.11.29
vi 명령어 단축키  (0) 2011.11.08
IBM AIX 점검명령어  (0) 2011.10.24
Unix 점검 명령어  (0) 2011.10.24
Linux 점검 명령어  (0) 2011.10.24