Alexander Riccio Alexander Riccio 6 6 silver badges 3 3 bronze badges. I've tried lrzip and pixz on a 19 GB text file. Both took about half an hour to compress it on a hexa-core machine , but the lrz file was half the size of the xz file 2.
So, another vote for this answer instead. Franki by 'contest', do you mean 'attest'? Feels like Pied Piper! Do you know what the difference would be between lrzip and rzip? Show 6 more comments. Can you expand on the distinction between "compactor" and "compressor" that you are making here? It was a very common terminology and distinction in the 90s, looks like from a google search, it's no longer the case. Maybe it was a DOS thing? In Unix, the distinction between compression and archiving is commonly made as you also say , but I've never heard "compactor".
It is not a DOS thing, but possibly it was a French thing. Googling usenet archives, I seem to only come across articles of mine, so it could well have been my invention, though I strongly believe it's not.
Show 2 more comments. I need to disagree on this one! However, they are so slow that they are unpracticle for most real-world usages. Franki cool sudo apt-get install zpaq , I did some tests, according to wiki , that app would be the newest , but it still loses for kgb that uses PAQ6 , but kgb is MUCH slower Franki How does zpaq or paq81 compare to lrzip? Aquarius Power Aquarius Power 3, 4 4 gold badges 30 30 silver badges 51 51 bronze badges.
Rui F Ribeiro Yaroslav Nikitenko Yaroslav Nikitenko 2 2 silver badges 12 12 bronze badges. The Overflow Blog. Podcast Making Agile work for data science.
Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Server Fault is a question and answer site for system and network administrators.
It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. I have a script that zip files from a folder. I want to make sure that the zipped file is not more than 10 MB. You can use the " split archive " functionality of " zip " itself using the " --split-size " option.
Note that the last file is the. Split size is a number optionally followed by a multiplier. Currently the number must be an integer. The multiplier can currently be one of k kilobytes , m megabytes , g gigabytes , or t terabytes. As 64k is the minimum split size, numbers without multipliers default to megabytes. So, to create a split zip archive , you could do the following the " -r " is the "recursive" switch to include subdirectories of the directory :. So, you first "unsplit" the ZIP file using the "-s 0" switch:.
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How to zip files with a size limit? Ask Question. Asked 5 years, 10 months ago. Regardless of what permissions you have set on your original file, permissions for the compressed file will be based on your umask setting, except for bzip2 which retains the original file's permissions.
The zip command creates a file which can be used i. The commands for decompressing files are similar to those used to compress the files.
These commands would work for decompressing bigfile after the compression commands shown above were run. If you'd like to run some tests on your own, grab a large but replaceable file and compress it using each of the commands shown above — preferably using a new subdirectory.
You might have to first install xz if you want to include it in the tests. This script can make the comparison easier, but will likely take a few minutes to complete.
Sandra Henry-Stocker has been administering Unix systems for more than 30 years. She describes herself as "USL" Unix as a second language but remembers enough English to write books and buy groceries. She lives in the mountains in Virginia where, when not working with or writing about Unix, she's chasing the bears away from her bird feeders. Here are the latest Insider stories. More Insider Sign Out. Sign In Register. Sign Out Sign In Register.
Latest Insider. Check out the latest Insider stories here. More from the IDG Network.
0コメント