7zip File: How to Uncompress 7z files on Ubuntu, Debian, Fedora
2013-10-10 13:10
645 查看
转: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.
If you don’t have 7za command, install p7zip package as shown below.
7za – command name
e – specifies the 7z to be extracted
myfiles.7z – is the file that is to be extracted
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.
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.7z Extracting myfiles/test1 Extracting myfiles/test2 Extracting myfiles/test Extracting myfiles Everything is Ok Folders: 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) Scanning Creating archive myfiles.7z Compressing 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.
相关文章推荐
- How to Setup NFS (Network File System) on RHEL/CentOS/Fedora and Debian/Ubuntu
- How to Setup NFS (Network File System) on RHEL/CentOS/Fedora and Debian/Ubuntu
- How to export files from rpm file on ubuntu system
- How to install Firefox 17 on Linux Mint, Ubuntu, Debian, CentOS, Fedora ... or any other Linux dist
- How to Install and Configure Bind 9 (DNS Server) on Ubuntu / Debian System
- How to install MySQL on Ubuntu/Debian
- How To Edit the Sudoers File on Ubuntu and CentOS
- How-To: Install Google’s Android Eclipse plugin (and/or adb) on 64-bit Debian/Ubuntu
- How To Install Kernel 3.10 On Ubuntu, Linux Mint, Debian and Derivates
- How to boot Ubuntu on a Cr-48
- How to diff and merge files or directories on Linux
- How To Install Linux, Nginx, MySQL, PHP (LEMP) Stack on Debian 7
- How to install a Windows software file in Ubuntu
- How to disable suspend on Fedora 18
- How to Mount a Remote Folder using SSH on Ubuntu
- Fail to paly WMA file on Ubuntu
- How to install VNC on Ubuntu
- [Mongo] How to Install Mongo on Debian(不要安装)
- How to Install Review Board on Ubuntu 16.04
- How-to Install Nvidia Driver on 2.6.25-2 Debian Kernel