예를들어 Directory 라는 폴더를 compress.tgz 라는 압축파일로 묶는다고 한다면, 운영체제에 따라 아래와 같이 실행할 수 있다. 리눅스- 리눅스는 아래 명령이면 된다. # tar -zcvf compress.tgz ./Directory 윈도우즈- 윈도우즈는 아래와 같이 몇가지 준비사항이 필요하다. 1. 7-zip 설치: http://www.7-zip.org 2. 명령프롬프트(cmd)를 관리자모드로 열기 3. 아래 명령어 실행 > 7z -ttar a dummy c:\Directory\* -so | 7z -si -tgzip a compress.tgz