쉘[유닉스] tar, gz

황제낙엽 2020.07.19 08:45 조회 수 : 585

sitelink1  
sitelink2  
sitelink3  
extra_vars6  

이미지_11.jpg이미지_10.jpg이미지_9.jpg


 

* tar로 묶기

  - syntax : tar -cvf [파일명.tar] [폴더명]

  - ex : tar -cvf afile.tar afolder <- afolder라는 폴더를 afile.tar로 묶기

 

* tar로 풀기

  - syntax : tar -xvf [파일명.tar]

  - ex : tar -xvf afile.tar <- afile.tar라는 파일을 풀기

 

* tar 명령어 옵션

  -c : 파일을 압축

  -p : 파일 권한을 저장

  -v : 압축 또는 해제 과정을 화면으로 출력함

  -f : 파일 이름을 지정

  -C : 경로를 지정

  -x : 압축 해제

  -z : gzip으로 압축하거나 해제함

 

* tar.gz 압축

  - syntax : tar -zcvf [파일명.tar.gz] [폴더명]

  - ex : tar -zcvf afile.tar.gz afolder <- afolder라는 폴더를 afile.tar.gz로 압축

 

* tar.gz 해제

  - syntax : tar -zxvf [파일명.tar.gz]

  - ex : tar -zxvf afile.tar.gz <- afile.tar.gz라는 압축파일을 해제

 

번호 제목 sitelink1 글쓴이 날짜 조회 수
199 윈도우 콘솔의 다국어 인코딩 변경 file   황제낙엽 2020.10.22 882
198 오류 1719 (Error 1719 Windows Installer...) file https://support.microsoft.com/ko-kr/help...e-when-ins  황제낙엽 2020.09.13 976
197 [Raspberry pi 3] docker-compose.yml 파일을 활용해 docker container 관리 효율성 높이기 file https://cafe.naver.com/stsmarthome/16737  황제낙엽 2020.08.26 664
196 폴더 억세스가 거부됨   황제낙엽 2020.08.24 851
195 WSL 설치후 VirtualBox가 구동이 안됨 file   황제낙엽 2020.08.04 652
194 Windows Terminal http://Microsoft Store  황제낙엽 2020.08.03 924
193 Windows 10에 Linux용 Windows 하위 시스템 설치(WSL) https://docs.microsoft.com/ko-kr/windows/wsl/install-win10  황제낙엽 2020.07.31 848
» tar, gz file   황제낙엽 2020.07.19 585
191 dig - 네임 서버(DNS) 진단을 위한 룩업 유틸리티 https://www.codns.com/b/B05-110  황제낙엽 2020.07.19 658
190 [Docker] docker private registry on raspberry pi (https private registry, letsencrypt standalone auth) secret https://bloodguy.tistory.com/entry/Docke...spberry-pi  황제낙엽 2020.07.17 0
189 [Docker] private registry 설치/운용, OpenSSL, S3 저장소 이용, Authentification 추가 secret https://novemberde.github.io/2017/04/09/...try_0.html  황제낙엽 2020.07.17 0
188 [Docker] 도커 레지스트리: 프라이빗 도커 이미지 저장소(설치부터 S3 연동까지) secret https://www.44bits.io/ko/post/running-do...s3-storage  황제낙엽 2020.07.17 0
187 [Docker] docker private registry(도커 사설 레지스트리)에 대하여 https://www.44bits.io/ko/post/running-do...s3-storage  황제낙엽 2020.07.17 565
186 [Docker] Portainer for local Docker environments on Windows 10 file https://lemariva.com/blog/2018/05/tutori...windows-10  황제낙엽 2020.07.14 26886
185 netsh 명령으로 프로그램을 방화벽 규칙에 등록하기 file   황제낙엽 2020.07.14 657
184 Virtualbox : VT-x is not available 오류 조치 방법 file http://blog.naver.com/PostView.nhn?blogI...1315290857  황제낙엽 2020.07.14 809
183 Windows에서 포트 포워딩(Port Forwarding) 설정하기 - Netsh https://www.tuwlab.com/ece/29011  황제낙엽 2020.07.14 989
182 리눅스 OS 버전 확인 (ubuntu, debian)   황제낙엽 2020.07.13 649
181 Ubuntu+Docker+Node.js (Hello World) file   황제낙엽 2020.07.12 663
180 rm (파일과 디렉터리를 삭제한다) https://terms.naver.com/entry.nhn?docId=...ryId=59321  황제낙엽 2020.07.12 581