split 으로 파일 짜르고 합치기

· 13년 전 · 2265
 아래와 같은 압축파일이 있다. 
 
-rw-r--r-- 1 root root 3966 Mar  3 15:18 test.tar.gz
 
 
-C 옵션을 사용한다.
 -C, --line-bytes=SIZE   put at most SIZE bytes of lines per output file
 
 
여러개의 파일로 쪼갠다.
 
[root@oracle test]# split -C 1024 test.tar.gz abc
 
-rw-r--r-- 1 root root  939 Mar  3 15:19 abcaa
-rw-r--r-- 1 root root 1005 Mar  3 15:19 abcab
-rw-r--r-- 1 root root  333 Mar  3 15:19 abcac
-rw-r--r-- 1 root root  839 Mar  3 15:19 abcad
-rw-r--r-- 1 root root  850 Mar  3 15:19 abcae
 
 
쪼갠 파일을 다시 합친다.
 
[root@oracle test]# cat abc* >> test.tar.gz
 
기존 압축파일과 용량이 같다.
-rw-r--r-- 1 root root 3966 Mar  3 15:20 test.tar.gz
 
압축을 풀면 아래 파일들이 나타난다.
 
-rw-r--r-- 1 root root 7685 Mar  3 15:17 1.txt
-rw-r--r-- 1 root root 1678 Mar  3 15:18 2.txt
 
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

개발자팁

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
Linux 13년 전 조회 1,530
기타 13년 전 조회 2,379
PHP 13년 전 조회 2,261
기타 13년 전 조회 2,124
Flash 13년 전 조회 2,965
Flash 13년 전 조회 3,079
jQuery 13년 전 조회 3,183
Linux 13년 전 조회 1,436
Linux 13년 전 조회 1,951
Linux 13년 전 조회 1,921
Linux 13년 전 조회 2,161
Linux 13년 전 조회 2,810
Linux 13년 전 조회 2,006
Linux 13년 전 조회 1,937
Linux 13년 전 조회 2,266
Linux 13년 전 조회 2,537
Linux 13년 전 조회 1,680
Linux 13년 전 조회 8,138
Linux 13년 전 조회 1,665
Linux 13년 전 조회 2,153
Linux 13년 전 조회 1,587
Linux 13년 전 조회 1,680
Linux 13년 전 조회 1,834
Linux 13년 전 조회 1,963
Linux 13년 전 조회 2,062
Linux 13년 전 조회 2,381
Linux 13년 전 조회 5,948
Linux 13년 전 조회 1,407
Linux 13년 전 조회 2,265
Linux 13년 전 조회 1,992
🐛 버그신고