split 으로 파일 짜르고 합치기

· 13년 전 · 2279
 아래와 같은 압축파일이 있다. 
 
-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,544
기타 13년 전 조회 2,391
PHP 13년 전 조회 2,277
기타 13년 전 조회 2,143
Flash 13년 전 조회 2,991
Flash 13년 전 조회 3,094
jQuery 13년 전 조회 3,196
Linux 13년 전 조회 1,446
Linux 13년 전 조회 1,964
Linux 13년 전 조회 1,935
Linux 13년 전 조회 2,174
Linux 13년 전 조회 2,830
Linux 13년 전 조회 2,026
Linux 13년 전 조회 1,947
Linux 13년 전 조회 2,280
Linux 13년 전 조회 2,552
Linux 13년 전 조회 1,686
Linux 13년 전 조회 8,170
Linux 13년 전 조회 1,676
Linux 13년 전 조회 2,175
Linux 13년 전 조회 1,604
Linux 13년 전 조회 1,694
Linux 13년 전 조회 1,852
Linux 13년 전 조회 1,982
Linux 13년 전 조회 2,084
Linux 13년 전 조회 2,392
Linux 13년 전 조회 5,973
Linux 13년 전 조회 1,415
Linux 13년 전 조회 2,276
Linux 13년 전 조회 1,998
🐛 버그신고