Wednesday, October 10, 2018

How to use 7zip on Archlinux command Line

7zip on Archlinux Command Line. 7zip is open source software file archiver with a high compression ratio. It support many popular archive formats besides 7z, such as zip, tar, gzip, etc.


7zip is distribute under GNU LGPL license and some parts of code are under the BSD 3-Clause License.

Main features of 7 zip:
- High compression ratio in 7z format with LZMA & LZMA2 compression.
- Support packing & unpacking : 7z, XZ, GZIP, ZIP, BZIP2, TAR, and WIM
- Support unpacking only : AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, Z, XAR, WIM, VMDK, VHD, VDI, UEFI, UDF, SquashFS, RPM, RAR, QCOW2, NTFS, NSIS, MSI, MBR, LZMA, LZH, ISO, IHEX, HFS, GPT, FAT.
- Compression ratio is 2-10% better than PKZip & Winzip for zip and GZIP Formats
- Strong AES-256 encryption in 7z & Zip
More features see at official 7 zip sites:
https://www.7-zip.org

7zip installation in archlinux

Install 7zip in archlinux
$sudo pacman -S p7zip
To see available options of 7zip, type 7zip in terminal
$7z
How to use 7zip on Archlinux command Line
The basic commands available after the 7zip installation are 7z, 7za, and 7zr.

Based From archlinux wiki:
https://wiki.archlinux.org/index.php/P7zip

Differences between 7z, 7za, and_7zr binaries
  • 7z uses plugins to handle archives.
  • 7za is a stand-alone executable that handles fewer archive formats than 7z.
  • 7zr 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.

Example of Using 7zip command in archlinux 

add files to archive:
$7z a archivename filetoarchive1 filetoarchive2 folder1 folder2.. etc
How to use 7zip on Archlinux command Line
7zip benchmarking of system
$7z b
How to use 7zip on Archlinux command Line
List content of archives:
$7z l archivename
How to use 7zip on Archlinux command Line

Extract files from archives:
Extract all without create folder:
$7z e archivename
How to use 7zip on Archlinux command Line
Extract some files :
First you must list the files first
$7z e archivename files1 files2 files3
How to use 7zip on Archlinux command Line

Extract all archived files into custom path / new folder:
$7z x -onewfolder archivename
In these example target new folder is "kampret"
Okay bro/sis that's about 7zip command line in archlinux, for easy archiving with gui you can see my post about extract archives.
Share on Facebook
Share on Twitter
Share on Google+