Difference between revisions of "P7zip"

From ArchWiki
Jump to navigation Jump to search
m (added spanish language)
m (style, link to the homepage instead of download page)
Line 20: Line 20:
  
 
== Examples ==
 
== Examples ==
* List the content of an archive:
+
 
 +
List the content of an archive:
  
 
  $ 7z l <archive name>
 
  $ 7z l <archive name>
  
* Extract all files from an archive to the current directory without using directory names:
+
Extract all files from an archive to the current directory without using directory names:
  
 
  $ 7z e <archive name>
 
  $ 7z e <archive name>
  
* Extract with full paths:
+
Extract with full paths:
  
 
  $ 7z x <archive name>
 
  $ 7z x <archive name>
  
* Extract into a new directory:
+
Extract into a new directory:
  
 
  $ 7z x -o<folder name> <archive name>
 
  $ 7z x -o<folder name> <archive name>
Line 46: Line 47:
 
== See also ==
 
== See also ==
  
* [http://www.7-zip.org/download.html 7zip homepage.]
+
* [https://www.7-zip.org/ 7-Zip homepage]
* [https://www.ibm.com/developerworks/community/blogs/6e6f6d1b-95c3-46df-8a26-b7efd8ee4b57/entry/how_to_use_7zip_on_linux_command_line144?lang=en How to use 7zip on Linux command Line.]
+
* [https://www.ibm.com/developerworks/community/blogs/6e6f6d1b-95c3-46df-8a26-b7efd8ee4b57/entry/how_to_use_7zip_on_linux_command_line144?lang=en How to use 7zip on Linux command Line]

Revision as of 16:34, 6 June 2019

Tango-emblem-symbolic-link.pngThis article is being considered for redirection to Archiving and compression tools.Tango-emblem-symbolic-link.png

Notes: Content doesn't justify article. (Discuss in Talk:P7zip#)

p7zip is command line port of 7-Zip for POSIX systems, including Linux.

Installation

Install the p7zip package.

The command to run the program is the following:

$ 7z

Examples

List the content of an archive:

$ 7z l <archive name>

Extract all files from an archive to the current directory without using directory names:

$ 7z e <archive name>

Extract with full paths:

$ 7z x <archive name>

Extract into a new directory:

$ 7z x -o<folder name> <archive name>

Differences between 7z, 7za and 7zr binaries

The package includes three binaries, /usr/bin/7z, /usr/bin/7za, and /usr/bin/7zr. Their manual pages explain the differences:

  • 7z(1) uses plugins to handle archives.
  • 7za(1) is a stand-alone executable that handles fewer archive formats than 7z.
  • 7zr(1) is a stand-alone executable. It is a "light-version" of 7za that only handles 7z archives. In contrast to 7za, it cannot handle encrypted archives.

See also