User Tools

Site Tools


notes:unix:fall2023: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:fall2023:projects:dac0 [2023/09/04 18:50] – [Toolbox] morcuttnotes:unix:fall2023:projects:dac0 [2023/09/05 23:59] (current) – [Updating current repository] jbernata
Line 17: Line 17:
  
 ====What is an archive==== ====What is an archive====
 +An archive is where you take multiple files and place them all in the same file. The new archive file would be the same size as if you added all of the sizes from the different files together.If you were to put 7, 10 mb into an archive, the archive would be the size of 50 mb. Tar is a command which does both archiving and a bit of compression.
 ====What actions can be performed on an archive?==== ====What actions can be performed on an archive?====
 +On an archive you can view the contents, append the contents, extract some of the contents, or 'unpack' all of the contents.
 ====What is compression==== ====What is compression====
  
 Compression is a technique used to reduce file size.  Compression is a technique used to reduce file size. 
 ====How does compression differ from archiving?==== ====How does compression differ from archiving?====
 +Short answer: Archiving stores multiple files in one file without changing the size the files take up, compression changes the bit pattern to reduce the size of the file or files.
 ====Types of compression (lossy vs lossless)==== ====Types of compression (lossy vs lossless)====
  
Line 32: Line 32:
 In the UNIX class Public Directory on lab46 you will find a **dac0/** subdirectory. You can reach the directory by **cd /var/public/fall2023/unix/**. Once there use **ls** to check see if you can find it. Once there enter the dac0 directory and into your the directory with your username. From there you can **cp** the files, specifying the absolute path to your dac0 (assuming you already made a dac0 directory in where you store your projects) directory in your home directory like **~/src/fall2023/unix/dac0/**. Then head to that directory via the same absolute path that you specified and verify all of the files are there with **ls**. In the UNIX class Public Directory on lab46 you will find a **dac0/** subdirectory. You can reach the directory by **cd /var/public/fall2023/unix/**. Once there use **ls** to check see if you can find it. Once there enter the dac0 directory and into your the directory with your username. From there you can **cp** the files, specifying the absolute path to your dac0 (assuming you already made a dac0 directory in where you store your projects) directory in your home directory like **~/src/fall2023/unix/dac0/**. Then head to that directory via the same absolute path that you specified and verify all of the files are there with **ls**.
  
 +Next unzip each of the files using tar "-cf file.tar" and "unzip file.zip"
 +
 +Check each of the text files, some are in English and others you will have to reverse, flip, or decode using the commands in the toolbox above.
 +
 +Once this is done use the stat "-c %s filename" command to see how big each file is, then rename them in order from smallest to largest with the letters of the alphabet, a being smallest, h being the largest.
 =====Repository Operations===== =====Repository Operations=====
  
Line 50: Line 55:
 You can pull changes from the server by using the "Hg pull" command. You can pull changes from the server by using the "Hg pull" command.
 ====Updating current repository==== ====Updating current repository====
 +hg update to update your system after everything has been pulled
notes/unix/fall2023/projects/dac0.1693853433.txt.gz · Last modified: 2023/09/04 18:50 by morcutt