12/6/2023 0 Comments Gz or .xz![]() Created based on LZW in 1985, it was hampered by the same patent woes that plagued GIF files. zip style DEFLATE compression in a Unix friendly package.Īnother nice benefit was that gzip could decompress other contemporary formats, thereby replacing contested and proprietary software.Īmong the tools it could replace was compress, the de-facto Unix standard at the time. It must have been a particularly easy sell for the fledgeling Linux kernel: it was made, used and endorsed by the mighty GNU project, it was Free Software, free of patent restrictions, and it provided powerful. Gzip itself started taking over in 1994, before, and before the World Wide Web went mainstream. However, since every OS, browser, language core library, phone and IoT lightswitch has built-in support for gzip, a 148 MiB (-81%) tar.gz remains an option even today. bzip2 is all but displaced today.īzip2 became the default in 2003, though it had long been an option over the less efficient gzip. The tar.bz2 would have been 115 MiB (-85%), but there’s was no defending the extra 20 MiB after xz caught up in popularity. ![]() tar file.The latest 4.13.9 source release of the Linux kernel is 780MiB, but thanks to xz compression, the download is a much more managable 96 MiB (an 88% reduction)īefore xz took over as the default compression format on in 2013, following the "latest" link would have gotten you a bzip2 compressed file. $ gunzip tar xvf mydir.tarīut this is slower and wastes space by creating an unneeded intermediary. You can separate out the archiving and compression stages, as in: Note you do not have to tell tar it is in gzip format. $ tar xvf mydir.tarĮxtract all the files in mydir.tar into the mydir directoryĬreate the archive and compress with gzipĮxtract all the files in into the mydir directory. At the same time you can optionally compress while creating the archive, and decompress while extracting its contents. It allows you to create or extract files from an archive file, often called a tarball. Historically, tar stood for "tape archive" and was used to archive files to a magnetic tape. zip backup *Ĭompresses all files in the current directory and places them in the file backup.zip.Īrchives your login directory ( ~) and all files and directories under it in the file backup.zip.Įxtracts all files in the file backup.zip and places them in the current directory. It is only used in Linux when you get a zipped file from a Windows user. The zip program is not often used to compress files in Linux, but is often required to examine and decompress archives from other operating systems. xz extension.Ĭompress the file foo into foo.xz using the default compression level (-6), and remove foo if compression succeeds.ĭecompress bar.xz into bar and don't remove bar.xz even if decompression is successful.ĭecompress a mix of compressed and uncompressed files to standard output, using a single command.ĭecompress the files compressed using xz. $ xz *Ĭompress all of the files in the current directory and replace each file with one with a. Once again it trades a slower compression speed for an even higher compression ratio. Xz is the most space efficient compression utility used in Linux and is now used by to store archives of the Linux kernel. Under the hood, bunzip2 is the same as calling bzip2 -d. ![]() bz2 extension.ĭecompress all of the files with an extension of. bzip2 *Ĭompress all of the files in the current directory and replaces each file with a file renamed with a. ![]() Thus, It is more likely to be used to compress larger files. Under the hood, gunzip command is actually the same as gzip –d.īzip2 has syntax that is similar to gzip but it uses a different compression algorithm and produces significantly smaller files, at the price of taking a longer time to do its work. ĭe-compresses foo found in the file foo.gz. gz extension.Ĭompresses all files in the projectX directory along with all files in all of the directories under projectX. The following table provides some usage examples: gzip *Ĭompresses all files in the current directory each file is compressed and renamed with a. It compresses very well and is very fast. Gzip is the most oftenly used Linux compression utility. Comprimindo dados no Linux (tar, bzip, gzip, zip, xz)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |