압축 파일

압축 포맷 해제 명령어 (CLI) 비고
.zip unzip file.zip unzip 패키지 필요
.tar tar -xf file.tar 단순 tar 아카이브
.tar.gz / .tgz tar -xzf file.tar.gz gzip 압축 포함
.tar.bz2 tar -xjf file.tar.bz2 bzip2 압축 포함
.tar.xz tar -xJf file.tar.xz xz 압축 포함
.gz gunzip file.gz 단일 파일 압축
.bz2 bunzip2 file.bz2 단일 파일 압축
.xz unxz file.xz 단일 파일 압축
.7z 7z x file.7z p7zip 패키지 필요
.rar unrar x file.rar unrar 패키지 필요
.iso 7z x file.iso ISO 이미지 해제 가능
.Z uncompress file.Z 오래된 UNIX 압축 포맷
# 압축 해제 하지 않고 내부 파일 확인
unzip -l [zipfile] 

# 압축 해제해서 저장할 디렉토리 설정
unzip [zipfile] -d [directory]

# -o와 이름 사이에 공백이 없어야함
7z x [zipfile] -o./[directory]

# 암호화 여부 확인
7z l -slt sitebackup3.zip | grep -E "Name|Method"

<aside>

binwalk [filename]

Since spreadsheet files such as .xlsx and .xlsm are just compressed files, we can read the Macros in the format of XML files by extracting them from the excel files.

binwalk -e [filename]

</aside>