split 으로 파일 짜르고 합치기

· 13년 전 · 2270
 아래와 같은 압축파일이 있다. 
 
-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,533
기타 13년 전 조회 2,382
PHP 13년 전 조회 2,267
기타 13년 전 조회 2,130
Flash 13년 전 조회 2,974
Flash 13년 전 조회 3,084
jQuery 13년 전 조회 3,187
Linux 13년 전 조회 1,443
Linux 13년 전 조회 1,955
Linux 13년 전 조회 1,925
Linux 13년 전 조회 2,165
Linux 13년 전 조회 2,818
Linux 13년 전 조회 2,009
Linux 13년 전 조회 1,942
Linux 13년 전 조회 2,271
Linux 13년 전 조회 2,540
Linux 13년 전 조회 1,682
Linux 13년 전 조회 8,153
Linux 13년 전 조회 1,671
Linux 13년 전 조회 2,162
Linux 13년 전 조회 1,593
Linux 13년 전 조회 1,684
Linux 13년 전 조회 1,842
Linux 13년 전 조회 1,968
Linux 13년 전 조회 2,068
Linux 13년 전 조회 2,387
Linux 13년 전 조회 5,959
Linux 13년 전 조회 1,412
Linux 13년 전 조회 2,271
Linux 13년 전 조회 1,994
🐛 버그신고