: 보통 tgz 압축을 풀때,
: tar -zxvf filename.tgz
: 이렇게 명령을 내리지 않습니까.
:
: 그런데 여기서,
: -f 옵션은 무엇을 가르키는지요..
:
: man tar 해서 보는데,
: 도통 무슨 말인지.. ㅠㅠ;;
:
: tar -zxv filename.tgz 라고 명령을 때리면,
: 어떻게 되는건가요?
tar -zxv filename.tgz 는 한번 해보시구요.
http://list.kldp.org/pipermail/tip/2001Nov/0337.html ( KLDP.org 의 구글검색에 Search kldp.org 옵션으로
tar 를 검색하면 두번째 문서로 나옵니다. )
에서는 아래와 같네요.
tar의 옵션을 살펴보자면
-c : create a new archive (생성)
-v : verbosely list files processed (장황하게.. ㅡ.ㅡ;;)
-z : filter the archive through gzip (gzip을 이용해서 압축)
-p : extract all protection information(퍼미션 유지)
-f : use archive file or device F (default /dev/rmt0) (file이름 지정)
--directory : change to directory DIR (디렉토리 변경)
--exclude : exclude file FILE (파일을 제외)