7zip File: How to Uncompress 7z files on Ubuntu, Debian, Fedora
轉(zhuǎn):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.
Install p7zip to unzip *.7z files on Fedora
# yum install p7zipInstall p7zip to unzip *.7z files on Debian and Ubuntu
$ sudo apt-get install p7zipUncompressing 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 OkFiles 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.
轉(zhuǎn)載于:https://www.cnblogs.com/pengdonglin137/p/3361082.html
總結(jié)
以上是生活随笔為你收集整理的7zip File: How to Uncompress 7z files on Ubuntu, Debian, Fedora的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Android学习手册:JSON解析工具
- 下一篇: Ubuntu18.04更换为国内源