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