"Zip"의 두 판 사이의 차이
ph
4번째 줄: | 4번째 줄: | ||
<code>less</code>로도 볼 수 있다. | <code>less</code>로도 볼 수 있다. | ||
− | [ | + | |
+ | [https://superuser.com/questions/216617/view-list-of-files-in-zip-archive-on-linux/216675#216675 참고] | ||
==특정 파일만 unzip== | ==특정 파일만 unzip== |
2017년 6월 12일 (월) 16:26 판
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써줌.