zip 압축하기
명령어
| |
파일 압축하기
특정 디렉토리에 모든 파일(./*)를 test.zip으로 압축한다.
| |
파일 및 디렉토리 압축하기
현재 폴더에 여러 하위 폴더가 있는데, 그것도 다 같이 압축하기 위해서는 -r 이라는 옵션을 추가한다. 특정 디렉토리에 모든 파일 및 디렉토리(./*)를 test.zip으로 압축한다.
| |
zip 압축풀기
zip파일을 압축을 푸는 명령어는 아래와 같다.
명령어
| |
파일 압축풀기
test.zip 파일의 압축을 푸는 명령어는 아래와 같다.
| |
특정 디렉토리에 파일 압축풀기
test.zip 파일을 /home/devkuma 디렉토리에 압축을 푸는 명령어는 아래와 같다.
| |
![Featured image of post [Shell] 리눅스 zip, tar, tar.gz 파일 압축 & 풀기](/post/2021-04-14-linux-unzip/tmp_wordcloud_hu_44b035110a3dc93c.webp)
![[Shell] 명령어 반복 실행 (watch, while)](/post/2022-06-27-linux-command-loop-execute/tmp_wordcloud_hu_6b313ed695f545b2.webp)
![[Shell] 서브 프로세스의 실행 종료를 대기하는 wait 커맨드](/post/2021-08-05-shell-wait/tmp_wordcloud_hu_b2b1adf3d1096c38.webp)
![[Shell] 숫자로 메뉴 실행하는 셸스크립트 예제](/post/2021-05-17-shell-script-number-example/tmp_wordcloud_hu_5f60c494c4ed0254.webp)
![[Shell] 파일 이름에서 경로와 확장자를 추출하는 법](/post/2021-07-09-get-file-name-in-shell/tmp_wordcloud_hu_e559de8c28fd107c.webp)
![[Shell] 리눅스 실행 프로세스의 환경변수 알아보기](/post/2021-04-29-get-process-environment-value/tmp_wordcloud_hu_cdcf86d44f4b3bcf.webp)