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_5f190e8b26aeb885.png)
![[Shell] 명령어의 입력과 출력을 다루는 방법(I/O Redirection)](/post/2024-09-10-shell-redirection/tmp_wordcloud_hu_ab0cff18f0685a23.png)
![[Shell] 명령어 반복 실행 (watch, while)](/post/2022-06-27-linux-command-loop-execute/tmp_wordcloud_hu_26ed660c21c5ba5d.png)
![[Shell] 서브 프로세스의 실행 종료를 대기하는 wait 커맨드](/post/2021-08-05-shell-wait/tmp_wordcloud_hu_335bbf237d3c0591.png)
![[Shell] 파일 이름에서 경로와 확장자를 추출하는 법](/post/2021-07-09-get-file-name-in-shell/tmp_wordcloud_hu_f5cd3c15afd48af0.png)
![[Shell] 숫자로 메뉴 실행하는 셸스크립트 예제](/post/2021-05-17-shell-script-number-example/tmp_wordcloud_hu_eb875b3fca504c45.png)