linux--分卷压缩解压缩
2015-10-25 21:38
691 查看
1、先压缩目录为一个文件
2、对文件进行切分,-d表示切分后的文件后缀已数字区分(如apk_2015.tar01,apk_2015.tar02),-b指定切分后文件的大小,后面跟需要切分的文件,最后是切分后文件的存放路径和名称前缀
3、切分后的文件效果
4、还原
后面的jx参数说明:
x: 解压
j :解压模式指定zip,这是因为前面压缩时用的zip
root@ip# tar zcvf apk.tar apk/
2、对文件进行切分,-d表示切分后的文件后缀已数字区分(如apk_2015.tar01,apk_2015.tar02),-b指定切分后文件的大小,后面跟需要切分的文件,最后是切分后文件的存放路径和名称前缀
root@ip# split -d -b 30000m apk.tar ../apk_2015.tar
3、切分后的文件效果
root@ip-172-31-6-97:/dump# ll total 586332520 drwxr-xr-x 4 uusafe uusafe 4096 Oct 25 18:03 ./ drwxr-xr-x 27 root root 4096 Oct 23 13:25 ../ -rw-r--r-- 1 root root 31457280000 Oct 25 14:19 apk_2015.tar00 -rw-r--r-- 1 root root 31457280000 Oct 25 14:30 apk_2015.tar01 -rw-r--r-- 1 root root 31457280000 Oct 25 14:41 apk_2015.tar02 -rw-r--r-- 1 root root 31457280000 Oct 25 14:51 apk_2015.tar03 -rw-r--r-- 1 root root 31457280000 Oct 25 15:02 apk_2015.tar04 -rw-r--r-- 1 root root 31457280000 Oct 25 15:13 apk_2015.tar05 -rw-r--r-- 1 root root 31457280000 Oct 25 15:23 apk_2015.tar06 -rw-r--r-- 1 root root 31457280000 Oct 25 15:34 apk_2015.tar07 -rw-r--r-- 1 root root 31457280000 Oct 25 15:45 apk_2015.tar08 -rw-r--r-- 1 root root 31457280000 Oct 25 15:55 apk_2015.tar09 -rw-r--r-- 1 root root 31457280000 Oct 25 16:06 apk_2015.tar10 -rw-r--r-- 1 root root 14004787200 Oct 25 16:11 apk_2015.tar11
4、还原
后面的jx参数说明:
x: 解压
j :解压模式指定zip,这是因为前面压缩时用的zip
root@ip# cat apk_2015.tar* |tar -jx
相关文章推荐
- CentOS 6.5 中文输入法没有候选框解决
- Notes on "Understanding the Linux kernel“
- Linux常用命令及使用方法
- 104 linux ubuntu 下将xampp换成lnmp
- linux配置
- linux使用fondconfig配置文件修改默认字体(gnome3)
- Linux配置CentOS永久IP地址
- centos 安装tmux
- linux脚本后台记录top命令信息
- Linux-Android开发常用命令
- 学习日志---linuxの yum的解析与使用
- centos7 下安装JDK1.8
- Linux高负载下优化MYSQL实例精解
- 嵌入式Linux根文件系统构建
- Linux下RPM软件包的安装及卸载
- Linux系统Java连接Mysql数据库
- Linux文件系统
- ARM9开发板FL2440移植Linux-3.0内核————MMC和LCD驱动
- ARM9开发板FL2440移植Linux-3.0内核————dm9000网卡的移植
- linux下Make编译出错,输入/输出错误原因及解决办法