윈도우 tar파일 압축풀기 - windou tarpail abchugpulgi

tar, tar.gz 파일을 사용하는 경우가 있다. 윈도우에서는 보통 zip 파일로 압축을 많이 하지만 리눅스에서는 tar를 사용하여 압축을 많이 한다. 윈도우10에서는 tar 명령어는 공식적으로 cmd에서 지원하기 때문에 아래와 같이 사용할수 있다.

>cmd

압축하기

tar -cvzf [생성파일이름] [압출폴더이름]

압축해제

tar -zxvf [압출파일이름] -C [해제폴더이름]

인자설명

>tar --help

tar(bsdtar): manipulate archive files
First option must be a mode specifier:
  -c Create  -r Add/Replace  -t List  -u Update  -x Extract
Common Options:
  -b #  Use # 512-byte records per I/O block
  -f <filename>  Location of archive (default \\.\tape0)
  -v    Verbose
  -w    Interactive
Create: tar -c [options] [<file> | <dir> | @<archive> | -C <dir> ]
  <file>, <dir>  add these items to archive
  -z, -j, -J, --lzma  Compress archive with gzip/bzip2/xz/lzma
  --format {ustar|pax|cpio|shar}  Select archive format
  --exclude <pattern>  Skip files that match pattern
  -C <dir>  Change to <dir> before processing remaining files
  @<archive>  Add entries from <archive> to output
List: tar -t [options] [<patterns>]
  <patterns>  If specified, list only entries that match
Extract: tar -x [options] [<patterns>]
  <patterns>  If specified, extract only entries that match
  -k    Keep (don't overwrite) existing files
  -m    Don't restore modification times
  -O    Write entries to stdout, don't restore to disk
  -p    Restore permissions (including ACLs, owner, file flags)
bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.5.f-ipp

윈도우10 tar 압축풀기, 압축하기(묶기) 방법

tar란?
압축확장자 *.tar는 Tape Archive의 약자이다. 대체로 tarball이라고 말한다. 압축하지 않고, 여러개의 파일을 묶는 역할을 한다. 때문에 압축형식은 아니다. tar는 gz와 함께 사용되는 경우가 많다.

tar 압축 해제 프로그램

7zip 링크

링크페이지 접속해서 7zip 다운로드 및 설치를 진행한다.

tar 압축하기(묶기)

압축하고 싶은 파일을 선택해서 [마우스 오른쪽 버튼 -> 7-zip -> 압축파일에 추가]를 클릭한다.

윈도우 tar파일 압축풀기 - windou tarpail abchugpulgi

[압축파일 형식 -> tar 변경] 확인버튼 클릭.

윈도우 tar파일 압축풀기 - windou tarpail abchugpulgi

tar 압축된 파일 확인.

윈도우 tar파일 압축풀기 - windou tarpail abchugpulgi

tar 압축풀기(해제)

압축파일을 선택해서 [마우스 오른쪽 버튼 클릭 -> 7-zip -> 여기에 압축 풀기] 클릭한다.

윈도우 tar파일 압축풀기 - windou tarpail abchugpulgi

윈도우에서 tar 압축을 하는 경우가 매우 드물다. 알집이나 반디집을 사용해서 zip파일로 압축하면 되기 때문이다.

가끔식 다운로드 받은 파일이 tar, tar.gz 파일로 압축되어 있는 경우에는 위와 같은 방법으로 압축해제를 하면 된다.