posts - 88, comments - 3, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          split file to pieces and restore under linux

          Posted on 2012-05-30 17:38 Milo的海域 閱讀(280) 評論(0)  編輯  收藏 所屬分類: Linux
          Sometime mailbox disallows u upload file exceed some limitation. you can split it before upload. here is one example:

          create test file
          touch file1 file2;
          echo 1 > file1;
          echo 2 > file2;
          tar zvcf old.tar.gz file1 file2;

          split file to segment with size as u wished
          split -b 50 old.tar.gz;

          restore file from segments
          cat xa* > new.tar.gz;

          verify the restore
          md5sum old.tar.gz new.tar.gz

          Generally, the check result should be same.


          主站蜘蛛池模板: 扬州市| 福贡县| 东乡| 山阳县| 台南县| 遂平县| 赣榆县| 高碑店市| 南宁市| 峨眉山市| 仲巴县| 宕昌县| 南郑县| 沧源| 阆中市| 晋宁县| 黄冈市| 铜山县| 滦平县| 康马县| 鄢陵县| 丰宁| 湘阴县| 望江县| 毕节市| 西乌珠穆沁旗| 沙河市| 永顺县| 汾西县| 罗定市| 谢通门县| 富裕县| 溆浦县| 甘孜县| 车险| 手游| 温州市| 微山县| 民权县| 广德县| 永顺县|