file 명령 사용 보기

하나의 파일을 확인하는 경우:

   file ReportA
   ReportA:        Frame Maker document

ReportA 파일을 검사하니 Frame Maker 프로그램을 이용해서 만들어진 파일이라고 하네요.


여러개의 파일 검사하기:

   file *
   external.c:     c program text
   external.h:     c program text
   mc:             sparc demand paged dynamically linked executable
   mcXThelp:       executable shell script
   mcdemo:         executable shell script
   mchelp:         executable shell script
   mchome:         executable shell script
   mctools:        executable shell script

이것은 현재 디렉토리 안에 있는 모든 파일을 검사하고, 그 결과를 보인 경우입니다. 이렇게 보면, 어느 것이 실행파일이고, 쉘 스크립트이고 하는 것을 할 수 있겠지요.


[차례] [찾기] [색인]