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/12 03:53] – [Pushing commits upstream to server] bwebste7 | 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: | ||
====How does compression differ from archiving? | ====How does compression differ from archiving? | ||
+ | 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===== | ||
Line 33: | Line 34: | ||
After running 'hg commit -m' you will need to push the changes by executing 'hg push' | After running 'hg commit -m' you will need to push the changes by executing 'hg push' | ||
====Pulling changes from server==== | ====Pulling changes from server==== | ||
+ | After executing 'hg push' you will then use the command 'hg pull' which will pull the files | ||
====Updating current repository==== | ====Updating current repository==== | ||
+ | After 'hg pull' it will prompt you to then update the repo by using the command 'hg update' |