zoukankan      html  css  js  c++  java
  • Linux下大型容量件的切割与合并

    Linux下大型容量件的切割与合并

                 

    当前目录下有sp4.exe文件容量129M
    我用64的U盘把spe.exe考到另一台机器上
    #split -b 60m sp4.exe
    -b, --bytes=SIZE   SIZE 值为每一输出档案的大小,单位为 byte。-C, --line-bytes=SIZE SIZE 可加入单位: b 代表 512, k 代表 1K, m 代表 1 Meg
    #ls
    -rw-r--r--    1 root     root     62914560  5月 18 00:40 xaa
    -rw-r--r--    1 root     root     62914560  5月 18 00:41 xab
    -rw-r--r--    1 root     root      8576176  5月 18 00:41 xac

    到另一台机器上合并
    #cat xa* >; ./sp4.exe     用jion也可以合并


    还有一种方法
    到[url]http://see.online.sh.cn/ch/sw/dl/split.htm[/url]下载
    解压后

    [root@rhas3 knife-2.0.1]# ls
    knife  link  linkfiles.pl  sp4.exe
    分割:
    [root@rhas3 knife-2.0.1]# ./knife -c sp4.exe 500   ( 500:字节大小)
    Cutting......Cutted Over
    [root@rhas3 knife-2.0.1]# ls -l
    总用量 44
    -rwxr-xr-x    1 root     root        12949 2000-02-28  knife
    -rwxr-xr-x    1 root     root           17 2000-02-28  link
    -rwxr-xr-x    1 root     root         1088 2000-02-28  linkfiles.pl
    -rw-r--r--    1 root     root         1543 2000-02-28  sp4.exe
    -rw-r--r--    1 root     root          500  5月 18 00:49 sp4.exe.k00
    -rw-r--r--    1 root     root          500  5月 18 00:49 sp4.exe.k01
    -rw-r--r--    1 root     root          500  5月 18 00:49 sp4.exe.k02
    -rw-r--r--    1 root     root           43  5月 18 00:49 sp4.exe.k03

    合并:
    [root@rhas3 knife-2.0.1]# ./link sp4.exe.k00 sp4.exe.k01 sp4.exe.k02 sp4.exe.k03                                                                                 
    Please intput the file name you want to LINK up, one by one.
    Just input OK when you have finished inputting.(一定要全输完在ok)
    ok
    In this order:

    Now it's time you type the name of the output file.

    -->;sp4.exe
    [root@rhas3 knife-2.0.1]#


    OK!

    本文出自 “李晨光原创技术博客” 博客,转载请与作者联系!

  • 相关阅读:
    慕课网 -- 性能优化之PHP优化总结笔记
    安装memcached服务 和 php 安装memcache扩展
    配置 host only 后 nat不能上网了
    linux svn soeasy
    wamp ssl配置https
    wamp 配置多站点访问
    安装wamp 缺少msvcr100.dll
    vagrant 相关记录
    复制mysql数据库的步骤
    php 的两个扩展 memcache 和 memcachd
  • 原文地址:https://www.cnblogs.com/chenguang/p/3742538.html
Copyright © 2011-2022 走看看