When file is too large, we will compress it and split it into several parts.

Now Let me show you how to combine them in Linux command line.

step 1: Install rar command

sudo apt-get install rar
sudo apt-get install p7zip-full

step 2: Merge rar files

rar e filename.rar
7z e filename.7z.001 -tiso.split  # split will tell 7z that package is splitted

  

For example:

➜  mac ls
macOS Sierra 10.12 Files.part01.rar macOS Sierra 10.12 Files.part05.rar
macOS Sierra 10.12 Files.part02.rar macOS Sierra 10.12 Files.part06.rar
macOS Sierra 10.12 Files.part03.rar macOS Sierra 10.12 Files.part07.rar
macOS Sierra 10.12 Files.part04.rar
➜ mac rar e macOS\ Sierra\ 10.12\ Files.part01.rar RAR 5.30 beta 2 Copyright (c) 1993-2015 Alexander Roshal 4 Aug 2015
Trial version Type RAR -? for help Extracting from macOS Sierra 10.12 Files.part01.rar Extracting Help.txt OK
Extracting Tutorial by wikigain.url OK
Extracting VirtualBox Code.txt OK Would you like to replace the existing file Tutorial by wikigain.url
142 bytes, modified on 2016-06-15 10:01
with a new one
142 bytes, modified on 2016-06-15 10:01 [Y]es, [N]o, [A]ll, n[E]ver, [R]ename, [Q]uit A Extracting Tutorial by wikigain.url OK
Extracting vmwarebase.dll OK
Extracting vmware-vmx-debug.exe OK
Extracting vmware-vmx-stats.exe OK
Extracting vmware-vmx.exe OK
Extracting dumpsmc.exe OK
Extracting dumpsmc.py OK
Extracting esxi-install.sh OK
Extracting esxi-uninstall.sh OK
Extracting gettools.exe OK
Extracting gettools.py OK
Extracting lnx-install.sh OK
Extracting lnx-uninstall.sh OK
Extracting lnx-update-tools.sh OK
Extracting local-template.sh OK
Extracting osx-install.sh OK
Extracting osx-uninstall.sh OK
Extracting darwin.iso.sig OK
Extracting VMware Tools.iso OK
Extracting Tutorial by wikigain.url OK
Extracting unlocker.exe OK
Extracting unlocker.py OK
Extracting VMX Code For VMware.txt OK
Extracting win-install.cmd OK
Extracting win-uninstall.cmd OK
Extracting win-update-tools.cmd OK
Extracting VMware Code.txt OK
Extracting VMware Tools.iso OK
Extracting macOS Sierra 10.12 by wikigain.vmdk 14% Extracting from macOS Sierra 10.12 Files.part02.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk 29% Extracting from macOS Sierra 10.12 Files.part03.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk 44% Extracting from macOS Sierra 10.12 Files.part04.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk 58% Extracting from macOS Sierra 10.12 Files.part05.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk 73% Extracting from macOS Sierra 10.12 Files.part06.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk 88% Extracting from macOS Sierra 10.12 Files.part07.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk OK
Extracting macOS Sierra Tutorial for VirtualBox.url OK
Extracting macOS Sierra Tutorial for VMware.url OK
Extracting Read me.txt OK
All OK
➜ mac

  

Merge Parts of Rar/7z Package in Linux的更多相关文章

  1. ORACLE数据库自动备份压缩的批处理脚本 rar 7z

    使用7z的版本: @echo offset filename="d:\backup\dbname_%date:~0,10%"set zipfile="d:\backup\ ...

  2. rar 7z文件打包

    把D:\file目录下的所有东西打包为file.rar放到D:\目录下, Rar.exe是放在c盘根目录下 >>C:\Rar.exe a -k -r -s -m1 D:\file.rar ...

  3. NodeJS require a global module/package in linux

    https://stackoverflow.com/questions/15636367/nodejs-require-a-global-module-package 1  export NODE_P ...

  4. Linux解决安装包无法找到问题Unable to locate package rar

    1:问题 在默认安装的Linux中有时候会找不到需要安装的软件包,那就需要更新了 例如在执行apt-get install xx的时候就报错了 E: Unable to locate package ...

  5. Linux下文件的打包、解压缩指令——tar,gzip,bzip2,unzip,rar

    本文是笔者对鸟叔的Linux私房菜(基础学习篇) 第三版(中文网站)中关于 Linux 环境下打包和解压缩指令的内容以及日常操作过程中所接触的相关指令的总结和记录,以供备忘和分享.更多详细信息可直接参 ...

  6. Linux中.rar文件解压

    1. 下载: https://www.rarlab.com/download.htm 我下载的是RAR 5.61 for Linux x64 2. 安装: 解压:tar -zxvf rarlinux- ...

  7. Linux、Windows 下分割、合并rar文件

    1.分割rar 1.1 linux下分割压缩rar 安装rar和unrar和序 $sudo aptitude install rar unrar 示例,分割压缩temp文件,每个包为1MB $rar ...

  8. Linux基础入门

    第一节,linux系统简介 一.实验内容 了解 Linux 的历史,Linux 与 Windows 的区别等入门知识. 二.实验要求 阅读linux简介与历史 三.实验步骤 (一).Linux 为何物 ...

  9. Linux 第一次学习笔记

    一.Linux 为何物 Linux 就是一个操作系统,就像你多少已经了解的 Windows(xp,7,8)和 Max OS ,至于操作系统是什么,就不用过多解释了,如果你学习过前面的入门课程,应该会有 ...

随机推荐

  1. H5兼容ie做法

    IE浏览器支持新的标签:可以在使用新标签之前用javascript创建一个虚假的标签,这样就可以识别了.如<article>标签,在使用前,创建一个虚假的<article>标签 ...

  2. [UnityAPI]SerializedObject类 & SerializedProperty类

    以Image类为例 1.MyImage.cs using UnityEngine; using UnityEngine.UI; public class MyImage : Image { ; pro ...

  3. 在HTML中显示base64 img 图片

    base64的图片可以直接显示在网页上面 <img src=“data:image/png;base64,******************************************** ...

  4. JS截取URL地址参数

    var url = window.location.search; 截取?r= 后面的参数var url = window.location.href;var urlss= urlssplit('co ...

  5. final关键字特点

    一.final关键字修饰的类 无法被继承(即不能有子类) 二.final关键字修饰的方法不能被重写 三.final关键字修饰的变量成为常量(即不允许被修改) 开发中经常使用   

  6. css:元素水平垂直居中的多种方式

    CSS元素(文本.图片)水平垂直居中方法   1.text-align:center; 2.margin:0 auto; 3.display:inline-block; + text-align:ce ...

  7. Android Studio 3.1.3正式版的新坑。。。

    Gradle编译时没问题,运行App时候出现: java.util.NoSuchElementException java.lang.RuntimeException: com.android.bui ...

  8. MySQL中的sort_buffer_size参数大小的设置问题

    看到sort_buffer_size这个参数(connect级别的参数,MySQL5.7,默认值是1048576字节,也就是1MB)的默认值这么小,想着是不是可以调大一点,反正内存动不动几十个GB的, ...

  9. 关于吴恩达机器学习支持向量机的问题,讲到对偶前有一个最小化f(w)使用拉格朗日求解时转化成一个最大的相等式的理解和一些困惑

    (纯属个人理解) 参考: https://www.zhihu.com/question/267482928 https://www.cnblogs.com/90zeng/p/Lagrange_dual ...

  10. mysql_day02

    MySQL-Day01回顾1.MySQL的特点 1.关系型数据库 2.跨平台 3.支持多种编程语言2.MySQL的启动和连接 1.服务端启动 sudo /etc/init.d/mysql start| ...