Skip to content

Zip

Command to package and compress (archive) files.

How to use

$ zip <flags> <output> <list_of_files>

Flags

  • -r: 서브디렉터리를 포함하여 압축한다.
  • -F: 한글파일을 포함하는 zip 압축.
  • -e: 암호를 설정한다.

Create a Zip File

To create a zip file, enter:

$ zip filename.zip input1.txt input2.txt resume.doc pic1.jpg

To include the contents of a directory in a zip archive, enter:

$ zip -r backup.zip /data

깨진 Zip 파일 복구

Linux 환경에서는 zip 명령어의 -FF 옵션을 사용해 볼 수 있습니다.

zip -FF 손상된파일.zip --out 복구된파일.zip

See also

  • unzip
  • tar
  • lz4
  • lzo
  • Unblob - 다양한 포맷에서 파일을 추출해주는 도구
  • Ouch - 통합 압축 도우미 CLI
  • pigz - gzip 의 병렬 구현체 오픈소스

Favorite site