However, if you’d like to use “pigz” for decompressing as well, then … But please remember to replace your source file’s name and its path with “testing”, (the “-k” parameter is used not to let “pigz” to delete the source file and “-best” means using the best possible compression levels).ĭecompression is pretty easy as the default file compression tool that comes with Ubuntu (called “File Roller”) or almost all the other GUI tools available in the GNU/Linux platform, should be able to read and extract the archives created by “pigz” as it’s based on the “gzip”. If you’re someone a bit new, then below is a simple example of compressing a file named “testing”.Īt the end, it’ll output a file named “testing.gz”, in the same directory. If you want to read its manual (nothing much to read there), use the below one instead. And as said before,”pigz” has the exact same functionality of “gzip”, so you can use it as you’d do with “gzip”.īut, since it has few options of its own, you can use the below command for getting a list of supported commands. Now I’m assuming that you are already comfortable with ‘gzip’. You can install “pigz” in Ubuntu 12.04 Precise Pangolin, 11.10 Oneiric Ocelot, 11.04 Natty Narwhal, 10.10 and 10.04 by using the below command in your Terminal window. Thus, if you have a folder, then you’ll have to put it into a single file container such as ‘tar’, before you can compress it using “pigz”. Just like with “gzip”, “bzip2” or many other compression tools in GNU/Linux, “pigz” only compresses single files. Meaning that all the commands used in “gzip” are usable in “pigz”. According to its manual page, it’s the “almost compatible” version of “gzip”. However, if you don’t like to use all the available CPU cores (say for maintaining a stable system), then you can tell “pigz” to use only a certain number of cores instead. By default, “pigz” will automatically detect your CPU cores and threads and will adjusts itself, so at the end, all of your CPU cores will be used while compressing. So, if you have a multicore CPU unit, and need to compress files as fast as possible, by using all of your available CPU cores, then “pigz” will come in handy. Luckily though, just like with the previously discussed “pbzip2” utility, there’s a tool called “pigz” which basically is the multithreaded version of the “gzip” utility. If you use the official “GNU Zip” (file compression tool, widely known as “gzip”) for compressing files in the GNU/Linux and have a powerful multi-core (and multithreaded) CPU unit, then just like me (though my CPU unit ain’t that powerful :D), you too might be frustrated by the fact “gzip” only using a single CPU core when running.īecause, if it used all the available CPU power while running (compressing files that is), then it should speed up the process quite significantly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |