ubuntu 7ZIP 压缩和解压缩
来源:互联网 发布:房源中介系统源码 编辑:程序博客网 时间:2024/05/16 23:44
Question: How do I uncompress a *.7z file ( 7zip file ) in UNIX / Linux ? Can you explain with a simple example?
Answer: Use 7za command to unzip a 7z file ( 7zip file ) on Unix platform as shown below.
Verify whether you have 7za command on your system.
# whereis 7za7za: /usr/bin/7za /usr/share/man/man1/7za.1.gz
If you don’t have 7za command, install p7zip package as shown below.
Install p7zip to unzip *.7z files on Fedora
# yum install p7zip
Install p7zip to unzip *.7z files on Debian and Ubuntu
$ sudo apt-get install p7zip
Uncompressing a *.7z 7zip files in Linux using 7za
$ 7za e myfiles.7z 7-Zip (A) 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30p7zip Version 9.04 (locale=C,Utf16=off,HugeFiles=on,1 CPU)Processing archive: ../../myfiles.7zExtracting myfiles/test1Extracting myfiles/test2Extracting myfiles/testExtracting myfilesEverything is OkFolders: 1Files: 3Size: 7880Compressed: 404
- 7za – command name
- e – specifies the 7z to be extracted
- myfiles.7z – is the file that is to be extracted
Creating a 7zip compression file in Linux
$ 7za a myfiles.7z myfiles/7-Zip (A) 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30p7zip Version 9.04 (locale=C,Utf16=off,HugeFiles=on,1 CPU)ScanningCreating archive myfiles.7zCompressing myfiles/test1Compressing myfiles/test2 Everything is Ok
Files and sub directories of myfiles/ will be added to the myfiles.7z.
- a – add to archive
- file.7z – archive file to which these files and dir from dir1 will be added to.
0 0
- ubuntu 7ZIP 压缩和解压缩
- vc zip压缩和解压缩
- vc zip压缩和解压缩
- zip压缩和解压缩文件夹
- 压缩和解压缩ZIP文件
- Java使用7Zip完成文件的压缩和解压缩
- apach ant 压缩和解压缩zip文件
- python怎样压缩和解压缩ZIP文件
- linux zip unzip 压缩和解压缩命令
- linux 压缩和解压缩(zip/unzip)
- ios中zip包压缩和解压缩
- java实现zip压缩和解压缩 源码
- python怎样压缩和解压缩ZIP文件
- PHP实现zip压缩和解压缩操作
- Java zip/gzip文件压缩和解压缩
- Java zip/gzip文件压缩和解压缩
- Zip压缩和解压缩(包括删除压缩的源文件)
- 【文件压缩】 Android Jar、Zip文件压缩和解压缩处理
- 动态加载dll
- android电池(四):电池 电量计(MAX17040)驱动分析篇
- 简单复数计算
- 谁脱了物联网的安全外衣?
- 降维概述(I)
- ubuntu 7ZIP 压缩和解压缩
- DKTabPageViewController
- 九度OJ 1174 查找第K小数 (STL)
- 八个炫酷的html5例子
- 从 Java 代码到 Java 堆
- Java父、子类成员变量和方法的调用关系
- android电池(五):电池 充电IC(PM2301)驱动分析篇
- 数据库笔记(三)
- xp win7 绿色chrome