Announcement Announcement Module
Collapse
No announcement yet.
Use 7z compression method when you share confidential data. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Use 7z compression method when you share confidential data.

    We are familier with some of the compression methods in Linux like;

    ZIP, CAB, ARJ, GZIP, BZIP2, TAR, CPIO, RPM and DEB formats, I suggest .7z compression method when you zip and share confidential data like OpenVPN ca.cert, cert file, key file and when you share SSL details etc..


    7-Zip is a file archiver with the highest compression ratio and the program supports 7z (which implements LZMA compression algorithm).
    7zr is a stand-alone executable, 7zr handles less archive formats than 7z, but does not need any others. 7zr is a "light-version" of 7za that only handles 7z archives. 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 and CentOS

    # yum install p7zip
    Install p7zip to unzip *.7z files on Debian and Ubuntu

    sudo apt-get install p7zip
    Creating a 7zip compression file in Linux

    $ 7za a myfolder.7z myfolder/

    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 myfolder.7z

    Compressing myfolder/test1
    Compressing myfolder/test2

    Everything is Ok

    Uncompressing a *.7z 7zip files in Linux using 7za


    $ 7za e myfolder.7z
    • 7za – command to be executed
    • e – option to extract the compressed folder
    • myfolder.7z – is the folder that is to be extracted
    Last edited by Jobinson; 10th May 2014, 10:36 AM.
Tag Cloud Tag Cloud Module
Collapse
Working...
X