tar 를 이용하여 압축시 특정 파일(확장자) 제외하기 > server

본문 바로가기
사이트 내 전체검색

server

tar 를 이용하여 압축시 특정 파일(확장자) 제외하기

페이지 정보

작성자 서방님 댓글 0건 조회 462회 작성일 18-08-29 09:44

본문

tar 명령을 이용하여 파일을 압축할 때 exclude 옵션을 이용하여 

특정 파일을 제외할 수 있다. 


<지정한 디렉토리를 file.tar.gz 으로 압축하고, .log, .jpg로 끝나는 파일, folder_name 디렉토리 제외>

tar -zcvf file.tar.gz source_dir_name --exclude="*.log" --exclude="*.jpg" --exclude="./folder_name"

https://www.gnu.org/software/tar/manual/html_section/tar_49.html


댓글목록

등록된 댓글이 없습니다.

Total 356건 2 페이지
게시물 검색

회원로그인

접속자집계

오늘
88
어제
84
최대
1,347
전체
154,459
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.