Corning Community College
CSCS1730 UNIX/Linux Fundamentals
This section will document any updates applied to the project since original release:
To begin putting your skills to work accomplishing tasks and solving problems on the system.
To successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved:
It would be especially useful to review the manual pages or any documentation on the following resources:
When we talk about archives, there are commonly two separate actions taking place. Sometimes they are intertwined, others they represent discrete steps.
They are:
Archives are merely a manifestation of a common computing concept: a container.
Containers encapsulate things; in this case- files. And the fact that UNIX tries to make everything a file really enhances the viability of this ability.
Compression, on the other hand, is an action performed on a single file. Utilizing various algorithms, we accomplish a sort of “more in less”… we can take the data present and cram it into a smaller box (file)… where the aim is to take up less storage on the filesystem (also makes copying easier).
There are many compression algorithms in existence. There are commonly two categories of compression algorithm:
Wikipedia has categories identifying various algorithms implemented for both lossless and lossy compression algorithms.
Where confusion may set in is when a tool combines the actions of archival AND compression. But if you think about it, even in such cases, we always end up with one file, and that file is compressed (unless we have a concatenation of separately compressed files into a single file.
Archives are useful in that they let us pack items together. If something needs 100 files, making a copy of that, or copying it/install it onto another system would be made more complex if we had to deal with each of those files individually. Archives simplify the problem in that they can provide us all those files, all contained within a single file (lessening opportunities for error). So, archives make our lives easier.
In the UNIX Public Directory you will find a fall2021/unix/adm0/ subdirectory.
There you will find directory files by the names of all the users in the class this semester. Locate yours and go into it. There you should find four files:
You'll want to make a copy of these files to some project-specific working directory in your home directory (~/src/SEMESTER/unix/adm0/, perhaps?)
Essentially, and on your pi, I want you to do the following:
One of the tests I will perform for output compliance of your code will involve comparing your program's output against a range of input values, to see if they all output in conformance with project specifications.
I will make use of a checksum to verify exactness.
You will need to run this from your adm0 project directory, where your individual a-h files are located.
You can check your project by typing in the following at the prompt:
lab46:~/src/SEMESTER/unix/adm0$ filechk unix adm0
If all aligns, you will see this:
==========unix/adm0 whole file comparison========================================= For the file: a you want: cca000c9cb8a5c134bed61154a7907ba you have: cca000c9cb8a5c134bed61154a7907ba MATCH For the file: b you want: c8136ca761229bad59497021a8f425af you have: c8136ca761229bad59497021a8f425af MATCH For the file: c you want: d6db0da4b084fff4b255ae7a4e95ed62 you have: d6db0da4b084fff4b255ae7a4e95ed62 MATCH For the file: d you want: dadd5272203fa77b80f26cf355e6e833 you have: dadd5272203fa77b80f26cf355e6e833 MATCH For the file: e you want: af095aeaaf55a8a3b351a921baebc9e7 you have: af095aeaaf55a8a3b351a921baebc9e7 MATCH For the file: f you want: 84d0fd81532fac6c743c8054f76f0270 you have: 84d0fd81532fac6c743c8054f76f0270 MATCH For the file: g you want: c36a56a9ab8190e4d007bd16e377639a you have: c36a56a9ab8190e4d007bd16e377639a MATCH For the file: h you want: 226c53b09f112cf7323cd5263302ea95 you have: 226c53b09f112cf7323cd5263302ea95 MATCH
If something is off, your checksum will not match the adm0 checksum, and verification will instead say “MISMATCH”, like follows (note that a mismatched checksum can be anything, and likely not what is seen in this example):
==========unix/adm0 whole file comparison========================================= For the file: a you want: cca000c9cb8a5c134bed61154a7907ba you have: cca000c9cb8a5c134bed61154a7907ba MATCH For the file: b you want: d8136ca761229bad59497021a8f425af you have: c8136ca761229bad59497021a8f425af MISMATCH For the file: c you want: d6db0da4b084fff4b255ae7a4e95ed62 you have: d6db0da4b084fff4b255ae7a4e95ed62 MATCH For the file: d you want: dadd5272203fa77b80f26cf355e6e833 you have: dadd5272203fa77b80f26cf355e6e833 MATCH For the file: e you want: af095aeaaf55a8a3b351a921baebc9e7 you have: af095aeaaf55a8a3b351a921baebc9e7 MATCH For the file: f you want: 84d0fd81532fac6c743c8054f76f0270 you have: 84d0fd81532fac6c743c8054f76f0270 MATCH For the file: g you want: d36a56a9ab8190e4d007bd16e377639a you have: c36a56a9ab8190e4d007bd16e377639a MISMATCH For the file: h you want: 226c53b09f112cf7323cd5263302ea95 you have: 226c53b09f112cf7323cd5263302ea95 MATCH
To successfully complete this project, the following criteria must be met:
To submit this program to me using the submit tool, run the following command at your lab46 prompt:
$ submit unix adm0 adm0e.tar.gz adm0steps Submitting unix project "adm0": -> adm0e.tar.gz(OK) -> adm0steps(OK) SUCCESSFULLY SUBMITTED
You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.
I'll be evaluating the project based on the following criteria:
26:adm0:final tally of results (26/26) *:adm0:archive submitted [2/2] *:adm0:archive has correct name of adm0e.tar.gz [2/2] *:adm0:archive is max compressed with gzip [2/2] *:adm0:archive is a tar archive [2/2] *:adm0:archive extracts into current directory [2/2] *:adm0:archive contains 8 english readable files [2/2] *:adm0:archived files are named a-h [2/2] *:adm0:archived files named in order of size [2/2] *:adm0:instructions submitted in text file [2/2] *:adm0:instructions in file named adm0steps [2/2] *:adm0:adm0steps contains list of instructions for accomplishing task [2/2] *:adm0:adm0steps instructions are accurate and correct [2/2] *:adm0:adm0steps any extra information after hash mark [2/2]