split 으로 파일 짜르고 합치기

· 13년 전 · 2320
 아래와 같은 압축파일이 있다. 
 
-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,581
기타 13년 전 조회 2,433
PHP 13년 전 조회 2,325
기타 13년 전 조회 2,187
Flash 13년 전 조회 3,049
Flash 13년 전 조회 3,131
jQuery 13년 전 조회 3,244
Linux 13년 전 조회 1,495
Linux 13년 전 조회 2,012
Linux 13년 전 조회 1,982
Linux 13년 전 조회 2,220
Linux 13년 전 조회 2,884
Linux 13년 전 조회 2,069
Linux 13년 전 조회 1,999
Linux 13년 전 조회 2,321
Linux 13년 전 조회 2,597
Linux 13년 전 조회 1,740
Linux 13년 전 조회 8,249
Linux 13년 전 조회 1,719
Linux 13년 전 조회 2,215
Linux 13년 전 조회 1,640
Linux 13년 전 조회 1,744
Linux 13년 전 조회 1,893
Linux 13년 전 조회 2,029
Linux 13년 전 조회 2,126
Linux 13년 전 조회 2,439
Linux 13년 전 조회 6,024
Linux 13년 전 조회 1,467
Linux 13년 전 조회 2,327
Linux 13년 전 조회 2,033