Compression is the reduction of the number of bits needed to store data.
Compression saves storage space and allows for speedy file transfers and low bandwidth. Furthermore, it's useful in creating backups in case of disk failure.
The data-holding services we use today all use some sort of compression to limit file size. For example, mp3 players have a special .mp3 file format that compresses music files.
Compression is mainly achieved by removing redundant data. For example, if you had an image of the flag below.
If you wanted to describe the flag to a friend, you wouldn't say "green on pixel 1x1, green on pixel 1x2, green on pixel 1x3..." and so on. You'd simply say "image-height: 300, image-width: 400, split into thirds vertically with green, white and red colors from left to right." Image compression works just like this, eliminating any redundant information.
There are two types of compression algorithms - lossy and lossless.
In a lossy algorithm, some of the data is lost in trade for a smaller file size. An example of this would be the .mp3 file format, which eliminites less audible sounds.
Lossless files, on the other hand, preserves all data contained in the original file. Considering any loss of data is intolerable in files, we'll be looking at compressing using commands that use lossless algorithms.
In this completely revised second edition of the perennial best seller How Linux Works, author Brian Ward makes the concepts behind Linux internals accessible to anyone curious about the inner workings of the operating system. Inside, you'll find the kind of knowledge that normally comes from years of experience doing things the hard way.$ Check price
Stretch out your back and relieve your back muscles with inversion therapy. This device counteracts the forces of gravity on the body by decompressing and elongating the spine. By using this product just ten minutes a day, you can be well on your way to improved circulation and posture while relieving muscle aches, back pain and stress.$$ Check price