![]() ![]() ( Note: tar.bz2 and tbz is similar to tb2). The following example command will create a 2 file for a directory /home/php. To create a highly compressed tar file we use the option j. The bz2 compression takes more time to compress and decompress files than gzip, which takes less time. The bz2 feature compresses and creates an archive file less than the size of the gzip. home/MyImages/yanaguptabaresf231110.jpg 3. home/MyImages/ReesewitherspoonCIA101202.jpg ![]() home/MyImages/the-japanese-wife-press-conference.jpg home/MyImages/katrinabarbiedoll231110.jpg home/MyImages/RobertKristenviolent101201.jpg ![]() home/MyImages/Sara-Khan-and-model-Priyanka-Shah.jpg # tar cvzf MyImages-14-09-12.tgz /home/MyImages ( Note: tar.gz and tgz both are similar). For example, the below command will create a compressed file for the directory /home/MyImages. To create a compressed gzip archive file we use the option z. f – File name type of the archive file.Let’s discuss each option used in the above tar command to create a tar archive file. home/tecmint/rpmforge-release-0.5.i386.rpm home/tecmint/phpmyadmin-2.11.11.noarch.rpm See the example of the tar command in action. The below example of the tar command will create a tar archive file tecmint-14-09-12.tar for a directory /home/tecmint in the current working directory. Exclude Files and Directories in Tar File How To Verify tar, tar.gz, and tar.bz2 Archive File Add Files or Directories to tar.gz and tar.bz2 Files Extract a Group of Files using Wildcard in Linux Data compression is still vitally important, even if all you're doing is shrinking something that you need to upload or transmit, or you're trying to claw back some space on a local hard drive. ![]() But we have so much more data to store, and the world over people are accessing cloud storage and streaming services. Related: 4 Ways to Free Up Disk Space on Linuxĭata storage is much cheaper today, and transmission speeds are orders of magnitude faster. Three decades ago data storage costs were high and transmission speeds were slow. The DEFLATE algorithm also incorporated ideas from two earlier compression methods, Huffman coding and LZ77 compression.Īt the time of writing, the DEFLATE algorithm is nearly three decades old. The DEFLATE algorithm added the twist that the most frequently encountered strings were allocated the smallest tokens and the least frequently encountered strings were allocated larger ones. Related: Benchmarked: What's the Best File Compression Format? Substituting the tokens for the original strings re-inflates the data back to its uncompressed state. The tokens are used to replace the strings in the data and, because the tokens are smaller than the data they replaced, the file is compressed. The unique strings are allocated a unique ID token by virtue of their position in the tree. The data to be compressed is scanned, and unique strings are identified and added to a binary tree. The DEFLATE algorithm improved on earlier compression algorithms which all operated on variations of a theme. Gzip is an implementation of the DEFLATE algorithm which was invented- and patented-by Phil Katz of PKZIP fame. So if you know how to use gzip, you're good to go without the need to install anything. There are other compression tools available, but no matter which Linux computer you find yourself needing to work on, you'll find gzip on it. The gzip data compression tool was written in the early 1990s, and it's still found in every Linux distribution. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |