Info-ZIP에 관하여

압축하는것에 대해 이야기해보겠다

zip --version 커맨드로 버전을 확인해볼수 있다.

내가 사용하는 zip의 버전은 다음과 같다

이것은 macos에도 포함되어있는 zip이다

windows의 wsl2에 설치해둔 ubuntu에는 기본적으로 들어가있지는 않았다

Q29weXJpZ2h0IChjKSAxOTkwLTIwMDggSW5mby1aSVAgLSBUeXBlICd6aXAgIi1MIicgZm9yIHNvZnR3YXJlIGxpY2Vuc2UuDQpUaGlzIGlzIFppcCAzLjAgKEp1bHkgNXRoIDIwMDgpLCBieSBJbmZvLVpJUC4NCkN1cnJlbnRseSBtYWludGFpbmVkIGJ5IEUuIEdvcmRvbi4gIFBsZWFzZSBzZW5kIGJ1ZyByZXBvcnRzIHRvDQp0aGUgYXV0aG9ycyB1c2luZyB0aGUgd2ViIHBhZ2UgYXQgd3d3LmluZm8temlwLm9yZzsgc2VlIFJFQURNRSBmb3IgZGV0YWlscy4NCg0KTGF0ZXN0IHNvdXJjZXMgYW5kIGV4ZWN1dGFibGVzIGFyZSBhdCBmdHA6Ly9mdHAuaW5mby16aXAub3JnL3B1Yi9pbmZvemlwLA0KYXMgb2YgYWJvdmUgZGF0ZTsgc2VlIGh0dHA6Ly93d3cuaW5mby16aXAub3JnLyBmb3Igb3RoZXIgc2l0ZXMuDQoNCkNvbXBpbGVkIHdpdGggZ2NjIDYuMy4wIDIwMTcwNDE1IGZvciBVbml4IChMaW51eCBFTEYpLg0KDQpaaXAgc3BlY2lhbCBjb21waWxhdGlvbiBvcHRpb25zOg0KICAgICAgICBVU0VfRUZfVVRfVElNRSAgICAgICAoc3RvcmUgVW5pdmVyc2FsIFRpbWUpDQogICAgICAgIEJaSVAyX1NVUFBPUlQgICAgICAgIChiemlwMiBsaWJyYXJ5IHZlcnNpb24gMS4wLjYsIDYtU2VwdC0yMDEwKQ0KICAgICAgICAgICAgYnppcDIgY29kZSBhbmQgbGlicmFyeSBjb3B5cmlnaHQgKGMpIEp1bGlhbiBSIFNld2FyZA0KICA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5kIG9iamVjdCBmb3JtcyBmcm9tIGFueSBjb3VudHJ5LCBpbmNsdWRpbmcNCiAgICAgICAgdGhlIFVTQSB1bmRlciBMaWNlbnNlIEV4Y2VwdGlvbiBUU1Ugb2YgdGhlIFUuUy4gRXhwb3J0DQogICAgICAgIEFkbWluaXN0cmF0aW9uIFJlZ3VsYXRpb25zIChzZWN0aW9uIDc0MC4xMyhlKSkgb2YgNiBKdW5lIDIwMDIuDQoNClppcCBlbnZpcm9ubWVudCBvcHRpb25zOg0KICAgICAgICAgICAgIFpJUDogIFtub25lXQ0KICAgICAgICAgIFpJUE9QVDogIFtub25lXQ==
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license. This is Zip 3.0 (July 5th 2008), by Info-ZIP. Currently maintained by E. Gordon. Please send bug reports to the authors using the web page at www.info-zip.org; see README for details. Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip, as of above date; see http://www.info-zip.org/ for other sites. Compiled with gcc 6.3.0 20170415 for Unix (Linux ELF). Zip special compilation options: USE_EF_UT_TIME (store Universal Time) BZIP2_SUPPORT (bzip2 library version 1.0.6, 6-Sept-2010) bzip2 code and library copyright (c) Julian R Seward (See the bzip2 license for terms of use) SYMLINK_SUPPORT (symbolic links supported) LARGE_FILE_SUPPORT (can read and write large files on file system) ZIP64_SUPPORT (use Zip64 to store large files in archives) UNICODE_SUPPORT (store and read UTF-8 Unicode paths) STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field) UIDGID_NOT_16BIT (old Unix 16-bit UID/GID extra field not used) [encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3) Encryption notice: The encryption code of this program is not copyrighted and is put in the public domain. It was originally written in Europe and, to the best of our knowledge, can be freely distributed in both source and object forms from any country, including the USA under License Exception TSU of the U.S. Export Administration Regulations (section 740.13(e)) of 6 June 2002. Zip environment options: ZIP: [none] ZIPOPT: [none]

압축하기

emlwIC1QICJ5b3VycGFzc3dvcmQiIC1yIC0wICJhcmNoaXZlLnppcCIgInNvdXJjZSINCg0KLVAgInlvdXJwYXNzd29yZCIg7ZW07IScIO2MqOyKpOybjOuTnOulvCDqsbjslrTspIQg7IiYIOyeiOuLpA0KLXIg64qUIFJlY3Vyc2Ug7Ji17IWY7J2064ukLiDtlYTsiJjsoIHsnLzroZwg7Y+s7ZWo7Iuc7Lyc6528DQotMCDripQg7JWV7LaV7JWI7ZWY6rKg64uk64qUIOyGjOumrOuLpC4g7JWV7LaV7J2EIO2VoOqxsOuptCDsnbQg7Ji17IWY7J2AIOu5vOudvA==
zip -P "yourpassword" -r -0 "archive.zip" "source" -P "yourpassword" 해서 패스워드를 걸어줄 수 있다 -r 는 Recurse 옵션이다. 필수적으로 포함시켜라 -0 는 압축안하겠다는 소리다. 압축을 할거면 이 옵션은 빼라

압축풀기

dW56aXAgLVAgInlvdXJwYXNzd29yZCIgImFyY2hpdmUuemlwIg0KDQrtjKjsiqTsm4zrk5zqsIAg7J6I64uk66m0IC1QICJ5b3VycGFzc3dvcmQiIOulvCDtj6ztlajsi5zsvJzso7zqs6Ag7JWE64uI652866m0IOu5vOyjvOuptCDrkJzri6Q=
unzip -P "yourpassword" "archive.zip" 패스워드가 있다면 -P "yourpassword" 를 포함시켜주고 아니라면 빼주면 된다