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

          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.


          主站蜘蛛池模板: 高密市| 泗洪县| 宝山区| 始兴县| 济南市| 渝北区| 阿克陶县| 铜梁县| 福海县| 鸡西市| 永宁县| 新闻| 如东县| 深圳市| 于都县| 石狮市| 德惠市| 西乌珠穆沁旗| 井陉县| 大荔县| 德庆县| 清丰县| 石楼县| 千阳县| 祁阳县| 通州区| 墨竹工卡县| 宜君县| 长垣县| 涞源县| 宜宾县| 大田县| 黎平县| 阳曲县| 大邑县| 红河县| 万荣县| 萝北县| 开封县| 卢氏县| 昌乐县|