Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

how to zip two files using 7zip via command line option. i want zip both files versioninfo.ini and Summary.xml with name Local.zip

exmple

7za a -t7z Local.7z versioninfo.ini Summary.xml (not working)

share|improve this question
    
The syntax is correct. What's the error message? –  Eric Carvalho May 31 '13 at 18:46
    
for a full run down of all the commands available type 7z --help in to a Terminal window. Perhaps if you replace 7za with 7z it may work. –  SimplySimon May 31 '13 at 19:00

1 Answer 1

To install 7z archiver as a command line utility, You need to install the p7zip-full package. To install, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install p7zip-full

After both p7zip and p7zip-full are installed, you will see the following three command line utilities installed in your Linux box :

7z uses plugins to handle archives.
7za is a stand-alone executable. 7za handles fewer archive formats than 7z, but does not need any others.
7zr is a stand-alone executable. 7zr handles fewer archive formats than 7z, but does not need any others. 7zr is a "light-version" of 7za that only handles 7z archives. 

Source IBM

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.