7za (7zip) Installation & command

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -ivh epel-release-6-8.noarch.rpm
rpm -ivh remi-release-6.rpm

or

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -ivh epel-release-5-4.noarch.rpm
rpm -ivh remi-release-5.rpm

yum install -y p7zip



7za x archive.zip -oFolder

Extract all file from archive archive.zip to folder (Extract with full paths)

7za e archive.zip -o/tmp/folder *.txt -r

Extract all *.txt files from archive archive.zip to /tmp/folder (Extract to current folder only)

7za a archive.7z subdir

adds all file,subfolders from folder subdir to archive archive.7z

7za a -tzip archive.7z subdir

adds all file,subfolders from folder subdir to archive archive.zip (type: zip)

7za a archive.7z *.txt -r

adds all *.txt files from current folder and its subfolders to archive archive.7z

7za a archive.7z -ssw subdir -ppassword

adds all file,subfolders from folder subdir to archive archive.7z with pssword
including files open for writing by another applications.



Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.