User Tools

Site Tools


notes:unix:spring2025:projects:dac0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:unix:spring2025:projects:dac0 [2025/02/04 01:53] – [What is an archive] tstricklnotes:unix:spring2025:projects:dac0 [2025/02/04 23:05] (current) – [Updating current repository] tstrickl
Line 19: Line 19:
 in the context of Linux, an archive is a place to store as many folders / files as one needs into one centralized file for long-term use. in the context of Linux, an archive is a place to store as many folders / files as one needs into one centralized file for long-term use.
 ====What actions can be performed on an archive?==== ====What actions can be performed on an archive?====
 +an archive can be compressed to be smaller
 ====What is compression==== ====What is compression====
 +the proccess of encoding data into fewer bits than the original representation
 ====How does compression differ from archiving?==== ====How does compression differ from archiving?====
 +archiving doesn't reduce file size, while compression does.
 ====Types of compression (lossy vs lossless)==== ====Types of compression (lossy vs lossless)====
 +after compressing a file with a lossless technique, the original image before it was compressed should look exactly the same after it is decompressed. Lossy compression makes a file lose data everytime it is compressed and decompressed. 
 =====Procedure===== =====Procedure=====
  
Line 31: Line 31:
  
 ====Checking current repository status==== ====Checking current repository status====
 +hg status brings up a list of all things ready to be staged
 ====Adding untracked files to repository==== ====Adding untracked files to repository====
 +hg add <File name> stages files, to get ready to be commited.
 ====Committing changes==== ====Committing changes====
 +hg commit -m "your message here." committing a change initializes it for a push and gives a description to the update  
 ====Pushing commits upstream to server==== ====Pushing commits upstream to server====
 +hg push. pushes any commits to the remote repository.
 ====Pulling changes from server==== ====Pulling changes from server====
 +hg pull. pulls changes from repo, but doesn't go into effect immediately.
 ====Updating current repository==== ====Updating current repository====
 +hg update. after pulling, do update to change your devices repo to update to the pulled one.
notes/unix/spring2025/projects/dac0.1738634015.txt.gz · Last modified: 2025/02/04 01:53 by tstrickl