'gzip'에 해당되는 글 1

  1. 2010.08.05 [Unix] tar, gzip

[Unix] tar, gzip

 

$ tar
tar: 사용법  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
//z옵션이 없으므로 gzip을 이용할 것(z옵션은 GNU tar만 될걸)

$ tar cvf log.tar biz.log*
a biz.log 7742 블록
a biz.log.1 10418 블록
a biz.log.2 10369 블록
...

$ gzip log.tar

$ gzip -d log.tar.gz


 

> tar cvfz log.zip biz.log*
> tar xvfz
tar xvf

 


tar: 이것은 tar 아카이브처럼 보이지 않습니다
tar: 다음 헤더로 건너 뜀
tar: Exiting with failure status due to previous errors


tar 아카이브가 아님. 반디집으로 압축한 파일의 확장자를 tar로 변경한 경우임.

=== https://youngclown.github.io/2018/07/tar_gzip