Zip
ph
list contents of zip archive
unzip -l
https://ubuntuforums.org/showthread.php?t=860398
less로도 볼 수 있다. 제일 편한듯.
특정 파일만 unzip
unzip -j "myarchive.zip" "in/archive/file.txt" -d "/path/to/unzip/to"
unzip매뉴얼에 보면
unzip [-Z] [-cflptTuvz[abjnoqsCDKLMUVWX$/:^]] file[.zip] [file(s) ...] [-x xfile(s) ...] [-d exdir]
[file(s)]
An optional list of archive members to be processed, separated by spaces. (VMS ver‐
sions compiled with VMSCLI defined must delimit files with commas instead. See -v in
OPTIONS below.) Regular expressions (wildcards) may be used to match multiple mem‐
bers; see above. Again, be sure to quote expressions that would otherwise be
expanded or modified by the operating system.
-j junk paths. The archive's directory structure is not recreated;
file(s)에 패턴이 오고, 폴더가 아니고 오직 파일만 가리키게 됨. 따라서 특정 폴더를 지칭하려면
unzip a.zip specific/in/zip/*
이렇게 asterisk써줌.