00 개요
- 리눅스 환경 터미널에서 .zip 압축 파일을 풀 수 있음
01 unzip이란
1. 정의
- lists and extracts files in zip archives.
- 기본값으로 extracts zipfile entries to the current directory, creating directories as needed
- Zip files do not store ownership info
- The extracted files are owned by the user that runs the command
- You must have write permissions on the directory where you are extracting the ZIP archive.
2. 문법
# 기본 문법
unzip [-Z] options archive[.zip] [file ...] [-x xfile ...] [-d exdir]
3. 옵션
4. unzip 사용
0) 설치
- unzip은 리눅스에 기본으로 설치되어 있으나 명시적으로 설치 가능
# yum install unzip
# pip install unzip
1) 현재 경로에 압축 해제
- 아무 옵션 없이 사용 시 지정된 압축 .zip 파일을 현재 디렉토리에 해제함
$ unzip SI_V1.0_설치.zip
Archive: SI_V1.0_설치.zip
inflating: vertica-9.3.1-30.x86_64.RHEL6.rpm
inflating: analytics9.1.4_deploy_dbschema.tar
inflating: confluent-5.2.1.tar
inflating: LSF-10.1_RHEL7.6.tar.Z
inflating: scheduler-insight_2022_0125_01.zip
inflating: SI_V1.0_INSTALL_GUIDE.docx
inflating: si-lsf-consumer.tar