How can I create a multipart 7zip file in Linux using the p7zip console client?

Many people referred me to it. My console app is

7-Zip [64] 9.13 beta  Copyright (c) 1999-2010 Igor Pavlov  2010-04-15
p7zip Version 9.13 (locale=C,Utf16=off,HugeFiles=on,4 CPUs)
  • 1
    IMO the best solution is to avoid 7-zip and use xz. To split archives, read here: stackoverflow.com/questions/1120095/… Sep 27 '14 at 11:05
  • Thank you. I'm not even for sure the xz option was even standard on most distros when I originally asked this question.
    – hopeseekr
    Dec 7 '14 at 0:09

Use the -v option (v is for volume) -v100m will split the archive into chunks of 100MB.

7z -v option supports b k m g (bytes, kilobytes, megabytes, gigabytes)

Example: 7z -v100m a my_zip.7z my_folder/

  • 3
    Be aware that 7zip doesn't preserve file ownership information on Linux. Sep 4 '10 at 15:10
  • 7z seem not to append files if file are already in the archive or if archive already exists. Jun 8 '16 at 14:13
  • 1
    Also works on OSX using brew install p7zip.
    – phoenix
    Oct 27 '16 at 14:58
  • 29
    Full command example: 7z -v100m a my_zip.7z my_folder/
    – phoenix
    Nov 11 '16 at 18:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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