This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:unix:fall2024:projects:dac0 [2024/09/14 03:36] – [How does compression differ from archiving?] mwinter4 | notes:unix:fall2024:projects:dac0 [2024/09/14 03:42] (current) – [What actions can be performed on an archive?] mwinter4 | ||
---|---|---|---|
Line 11: | Line 11: | ||
An archive is a single file that contains many file making it much easier for to move a bunch of files instead of moving them one at a time. It will effectively keep copies of your files in one place. They can also be compressed to reduce the overall size. In short they are very useful. -c will create well -f specifies the name of the archive file. | An archive is a single file that contains many file making it much easier for to move a bunch of files instead of moving them one at a time. It will effectively keep copies of your files in one place. They can also be compressed to reduce the overall size. In short they are very useful. -c will create well -f specifies the name of the archive file. | ||
====What actions can be performed on an archive? | ====What actions can be performed on an archive? | ||
+ | There are many different actions that can be performed on an archive such as compression, | ||
====What is compression==== | ====What is compression==== | ||
Compression is a method of reducing the size of files by encoding information in ways that reduce redundancy or unimportant information. Compression is especially useful for transferring files over networks, but can also help to reduce disk usage. There are two types of compression: | Compression is a method of reducing the size of files by encoding information in ways that reduce redundancy or unimportant information. Compression is especially useful for transferring files over networks, but can also help to reduce disk usage. There are two types of compression: | ||
Line 17: | Line 17: | ||
Archiving is mainly used for organization rather than file size reduction. For example, a lot of Minecraft mods archive their constructs and data in JAR files, a specific kind of archive used in Java. This also makes groups of files more easily portable. such as with zip and tar files. | Archiving is mainly used for organization rather than file size reduction. For example, a lot of Minecraft mods archive their constructs and data in JAR files, a specific kind of archive used in Java. This also makes groups of files more easily portable. such as with zip and tar files. | ||
====Types of compression (lossy vs lossless)==== | ====Types of compression (lossy vs lossless)==== | ||
+ | Lossless compression reduces file size by eliminating statistical redundancies and no information is actually lost with this method of compression. | ||
+ | Contrastingly, | ||
=====Procedure===== | =====Procedure===== | ||