Original URL: http://blog.csdn.net/zqlovlg/article/details/8033456Installation method:sudo apt-get install p7zip-fullUnzip the file:7z x manager.7z-r-o/home/xxThe explanations are as follows:x represents the extracted files, and is extracted according to the original directory (there is also a parameter e is the decompression file, but it will all the files are extracted to the root, not their original fold
As a summary and sharing, this article collects and sorts out the reille blog articles about 7z, how to install and use 7z commands in Linux, and how to port 7z to embedded Linux.
If you like, or are interested in, or need to involve the technical knowledge described in this topic at work, we recommend that you read from top to bottom in order so that you can sys
follows:1) go to the website http://sourceforge.net/projects/p7zip/files/or http://sourceforge.net/projects/p7zip/files/p7zip/download P7zip package , the current latest version is 9.20.1;2) Find the corresponding version number in, the page will provide two for you to download, one is the bin package, the other is the source package, here is the bin package, to 9.20.1 as an example, the download package name is: p7zip_9.20.1_x86_linux_bin.tar.bz2;3) Execute the following command (
1.1 Online InstallationIf your host Linux can be connected to the extranet, it is recommended this way, convenient and simple, execute the command:sudo apt-get install P7zipYou can install the 7z command online.1.2 Installation package Installation7z (exactly 7-zip) provides a program installation package under the line, or it can be compiled and installed on its own. This is the installation using the bin package provided by 7z.Host Linux is generall
Command Unzip the file example: unzip the file.7z file to the directory Mydir.7z x "d:\File.7z"-y-aos-o "D:\Mydir"Parameter description:X: Extract files under full path-Y: All confirmation options are specified think Yes (i.e. no confirmation prompt is present)-aos: Skippin
theI downloaded it like this (on the Samba server)[Email protected]:~/workshare/android5_1$ lltotal 5824448drwxrwxrwx 2 Nobody nogroup 4096 Sep 08:49./drwxrwxrwx 3 root root 4096 Sep 26 08:24.. /-rw-rw-rw-1 Nobody nogroup 4290772992 Sep-02:53 android-5.1.tar.bzip2-no-repo.7z.001-rw-rw-rw-1 nobody nogroup 16734 42061 Sep 00:54 android-5.1.tar.bzip2-no-repo.7z.002Ah, is the two separate documents.I'll drink
In the Linux operating system, the compression and decompressing of the *. zip, *. tar, * .tar.gz, * .tar.bz2, *. tar. xz, *. jar, and * .7z formats are as follows: .tar.gz.tar.bz2Zip Format
Compression: zip-r folder target file name. zip [original file/directory name] unzip: unzip folder original file name. zip
Note: The-r parameter indicates recursion.Tar forma
CentOS installation 7z
7z is an open source compression software. The compression ratio is high. It is easy to use a client in Windows. For use in Linux, installation is required.
First, download the 7z linux version, which is p7zip in linux and sourceforge.
Wget http://downloads.sourceforge.net/project/p7zip/p7zip/9.13/p7zip_9.13_src_all.tar.bz2? R = http % 3A %
TarUnpacking: Tar xvf Filename.tarPackage: Tar cvf filename.tar DirName(Note: Tar is packaged, not compressed!) )———————————————. gzDecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzCompression: gzip FileName. tar.gzDecompression: Tar zxvf FileName.tar.gzCompression: Tar zcvf FileName.tar.gz DirName———————————————. bz2Decompression 1:bzip2-d filename.bz2Decompression 2:BUNZIP2 filename.bz2Compression: Bzip2-z FileName. tar.bz2Decompression: Tar jxvf FileName.tar.bz2Compression:
Commonly used is-t{type} and-R,-O,-y Decompression command: 7z x-tzip-y Xx-13.zip (unzip to the current directory, if you want to change the output directory, need additional use-O) Compression command: 7z a-tzip-r xx.zip a\* b\* Compress directory A, directory B, into a xx.zip For more details on the parameters, please refer to here: Http://www.dot
Tar, 7z (7zip) compression/Decompression command, 7z7zip
This document describes how to use tar and 7z commands.Tar command
In Linux, the most commonly used compression/Decompression command is the tar command.
The tar command is used to package the structure of multiple files/directories. In actual use, tar is often used to support compression, that is, two steps of packaging and compression are performed
[Go]ubuntu Linux installation. 7z Unzip and compress fileshttp://blog.csdn.net/zqlovlg/article/details/8033456Installation method: sudo apt-get install p7zipUnzip the file: 7z x manager.7z-r-o/home/xxThe explanations are as follows:x represents the extracted files, and is extracted according to the original directory (
Zip formatCompression: Zip-r [ target file name ]. zip [ original file/directory name ]Decompression: Unzip [ original filename ]. zipNote: the-r parameter represents recursionTar format (this format is only packaged, not compressed)Package: TAR-CVF [ target file name ]. Tar [ original filename/directory name ]Unpacking: TAR-XVF [ original filename ]. TarNote: The C parameter stands for Create (created), the x parameter represents extract (unpacking),
Recently in the process of automating the use of 7z command-line tools, found its parameters in the path is very interesting, in this summary. The 7z version used for all demos in this article is: 15.14 x64.Compress a folderThe following command packages all the files in the G:\temp\ directory and directory into the compressed file abc.zip.7z.exe a ABC. Zip g:\temp\Note that in this case, the temp directory
Common parameters and examples of 1,TAR commands:Required Parameters: (3 parameters cannot coexist)-C: Creates a compressed file that represents create.-X: Unzip the file-T: View the files inside the package!Auxiliary parameters:-Z: Compressed/uncompressed with gzip-J: Compressed/uncompressed with bzip2-V: Show the compression/decompression progress bar-F: Use the file name (note: F do not answer the parameters, that is,-ZXFV is wrong, to write-ZXVF)I
Link: http://blog.sina.com.cn/s/blog_5e1ec7060101c4m7.html
201305028 add to favorites
WinRAR supports decompression of the 7z package, but does not support decompression of the 7z file. If you use WinRAR to open the 7z file, an error is returned.
The original cause is that the 7z file is actually a large file, such as
This example describes how Python uses 7z to unzip the APK package. Share to everyone for your reference. Specific as follows:
This code is extracted from the shell by invoking the 7z APK package
def run_shell (Command, Mayfreeze=false): Def check_retcode (Retcode, cmd): if 0! = Retcode:print >> sys.stderr, ' err Executing ' + cmd + ': ', Retcode sys.exit (retc
Tags: file div compile installation management files. com cannot be local logsLinux systems cannot directly support RAR and 7z due to copyright, and need to install third-party tools manually.RAR Supportsudo apt install unrar7z Supportsudo apt install p7zip-fullCompile and install RAR support (not recommended)
Download the latest RAR support package from http://www.rarlab.com/download.htm
Unzip the
Under ubuntu 7z rarfile decompression method to open the terminal, type the following command: apt-get install p7zip-full command after installation, unzip the file, as follows: 7z x file is the file to be decompressed. Generally, the rarfile cannot be decompressed through the default ubuntu installation. It can be decompressed only after the rar decompression to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.