Linux—压缩解压缩命令
来源:互联网 发布:io域名是哪里 编辑:程序博客网 时间:2024/06/03 18:58
压缩
tar –cvf jpg.tar *.jpg //将目录里所有jpg文件打包成tar.jpg
tar –czf jpg.tar.gz *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用gzip压缩,生成一个gzip压缩过的包,命名为jpg.tar.gz
tar –cjf jpg.tar.bz2 *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用bzip2压缩,生成一个bzip2压缩过的包,命名为jpg.tar.bz2
tar –cZf jpg.tar.Z *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用compress压缩,生成一个umcompress压缩过的包,命名为jpg.tar.Z
rar a jpg.rar *.jpg //rar格式的压缩,需要先下载rar for linux
zip jpg.zip *.jpg //zip格式的压缩,需要先下载zip for linux
解压
tar –xvf file.tar //解压 tar包
tar -xzvf file.tar.gz //解压tar.gz
tar -xjvf file.tar.bz2 //解压 tar.bz2
tar –xZvf file.tar.Z //解压tar.Z
unrar e file.rar //解压rar
unzip file.zip //解压zip
总结
1、*.tar 用 tar –xvf 解压
2、*.gz 用 gzip -d或者gunzip 解压
3、.tar.gz和.tgz 用 tar –xzf 解压
4、*.bz2 用 bzip2 -d或者用bunzip2 解压
5、*.tar.bz2用tar –xjf 解压
6、*.Z 用 uncompress 解压
7、*.tar.Z 用tar –xZf 解压
8、*.rar 用 unrar e解压
9、*.zip 用 unzip 解压
转自http://blog.csdn.net/mmllkkjj/article/details/6768294/
- Linux—压缩解压缩命令
- linux 压缩解压缩命令
- linux压缩解压缩命令
- linux压缩解压缩命令
- linux压缩解压缩命令
- Linux 压缩/解压缩命令
- linux压缩解压缩命令
- linux 压缩解压缩命令
- linux 压缩&&解压缩命令
- linux 压缩、解压缩命令
- Linux压缩解压缩命令
- Linux压缩解压缩命令
- Linux命令--压缩解压缩
- linux 压缩解压缩命令
- 压缩解压缩linux命令
- Linux学习——压缩解压缩命令
- linux命令—文件压缩解压缩
- linux压缩(解压缩)命令详解
- 一件四周年纪念卫衣的情怀
- 史上最完整的人工智能书单大全,学习AI的请收藏好
- 恐惧、野心和迷茫,机器人公民背后的未来世界
- 基于大数据学习算法的优惠券预测模型
- MySQL高可用架构之MHA
- Linux—压缩解压缩命令
- 图片文件上传技术分享 By ZoomLa!CMS
- 2017年中国人工智能产业最全研究报告发布 | AI世界2018年八大趋势
- mac安装LightGBM with Anaconda
- DEF盘全部不见怎么恢复
- django与vue开发中跨域请求问题
- JSON.stringify格式化Json字符串
- 链接文件
- QT选择目录等常用文件/文件夹操作