zip 패키지를 동일한 파일로 추출합니다.

zip 패키지를 동일한 파일로 추출합니다.

다음 세 파일을 동일한 폴더에 묶고 추출하고 싶습니다.

files1.txt
files2.txt
files3.txt

zip -r myfiles.zip files1.txt files2.txt files3.txt

zip 압축을 풀 때 출력:

files1.txt
files2.txt
files3.txt

예상 출력:

myfiles/files1.txt
myfiles/files2.txt
myfiles/files3.txt

답변1

제가 정확하게 기억한다면 -d 옵션을 지정할 수 있습니다:

unzip myfiles.zip -d myfiles

-d 옵션 매개변수로 명명된 디렉토리가 추출된 파일을 포함하여 생성됩니다.

관련 정보