转:http://www.thegeekstuff.com/2010/04/7z-7zip-7za-file-compression/

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 7za
7za: /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-30
p7zip Version 9.04 (locale=C,Utf16=off,HugeFiles=on,1 CPU)Processing archive: ../../myfiles.7zExtracting  myfiles/test1
Extracting  myfiles/test2
Extracting  myfiles/test
Extracting  myfilesEverything is OkFolders: 1
Files: 3
Size:       7880
Compressed: 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-30
p7zip Version 9.04 (locale=C,Utf16=off,HugeFiles=on,1 CPU)
ScanningCreating archive myfiles.7zCompressing  myfiles/test1
Compressing  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.

转载于:https://www.cnblogs.com/pengdonglin137/p/3361082.html

7zip File: How to Uncompress 7z files on Ubuntu, Debian, Fedora相关推荐

  1. configure: error: newly created file is older than distributed files!

    在一个特定的环境中遇到如下情况: configure: error: newly created file is older than distributed files!make: warning: ...

  2. 成功解决FileNotFoundError: [Errno 2] No such file or directory: 'F:\\Program Files\\Python\\Python36\\li

    成功解决FileNotFoundError: [Errno 2] No such file or directory: 'F:\\Program Files\\Python\\Python36\\li ...

  3. 成功解决File amp;quot;f:\program files\python\python36\lib\re.pyamp;quot;, line 142, in amp;lt;modul

    成功解决File "f:\program files\python\python36\lib\re.py", line 142, in <modul ...

  4. How to play .rmvb files in Ubuntu

    原文: How to play .rmvb files in Ubuntu This tutorial will take you step by step through installing al ...

  5. How to Fix “Username is not in the sudoers file. This incident will be reported” in Ubuntu

    How to Fix "Username is not in the sudoers file. This incident will be reported" in Ubuntu ...

  6. input file 获取不到Request.Files 解决办法

    <input type="file" name="xxxxxxx"/>必须有"name"属性,否则在后台代码中用Request. ...

  7. 7zip@命令行压缩@解压缩7z/zip/等各种压缩格式包@查看压缩包内容

    文章目录 windows_powershell+scoop+7zip_命令行解压缩7z包 references 7zip安装@操作 windows scoop方式安装 搜索7zip 检查是否安装成功 ...

  8. java path file转换_Java-技术专区-Files类和Paths类的用法

    A Path represents a path that is hierarchical and composed of a sequence of directory and file name ...

  9. oracle12c映像文件,Oracle 12C Database File Mapping for Oracle ASM Files

    为了理解I/O性能,你必须要详细了解存储文件的存储层次信息.Oracle提供了一组动态性能视国来显示文件到逻辑卷中间层到实际的物理设备之间的映射信息.使用这些动态性能视图,可以找到一个文件的任何数据块 ...

最新文章

  1. Invoking Page() in async task.
  2. python截取html图片大小,Python打开html文件,截取屏幕截图,裁剪并保存为图像
  3. php 将图片截取成3张,【php】php gd库怎么把一个图片裁剪成圆形的
  4. Linux服务器程序编程的几个坎
  5. C#中调用Windows系统服务exe程序的工具类与重启服务的流程
  6. Javascript代码优化的8个知识点
  7. 杭电c语言课程设计实验7,杭电1072 BFS 大神给看看啊 郁闷整整10个小时了 不知道哪里错wa...
  8. LeetCode String Compression
  9. WebStorm 2017 最新版激活方式
  10. xtrabackup mysql 5.1_mysql 5.1 选哪个 xtrabackup
  11. LastPass 的开源替代品
  12. 四菱天线怎么加强_白话天线(2)---什么是天线?
  13. OrCAD PSpice仿真流程——Cadence 17.4
  14. 法度远程视频审讯系统有哪些主要功能?
  15. VINS-Mono 论文解读(IMU预积分残差+Marg边缘化)
  16. 再谈微软复兴,纳德拉与库克、马斯克、皮查伊在管理上有什么不同
  17. python任务编排_基于DAG实现的任务编排框架平台
  18. 2018年7月北航举办软件工程师师资培训札记
  19. 【ReID】ABD-Net: Attentive but Diverse Person Re-Identification
  20. js实现在页面实时显示时间,一个按钮控制时间暂停和开始

热门文章

  1. 前端学习(3192):react第一个案例
  2. 前端学习(2911):cdn的加速策略
  3. [css] box-sizing的宽度包含了哪些?
  4. 前端学习(2688):重读vue电商网站9之el-menu 默认会有一个 border-right
  5. 前端学习(1797):前端调试之css伪元素
  6. 前端学习(1310):http协议
  7. shiro学习(22):动态添加验证规则2
  8. 6用NetBeans进行JSP开发
  9. html:(11):address和code标签
  10. java python 运行 内存_Python C Java中字符串在内存中的存储