Changes

Jump to: navigation, search

OPS235 Lab 5 - Fedora17

878 bytes added, 10:16, 13 February 2010
no edit summary
Answer the Investigation 2 question.
 
==Investigation 3: How do you restore files from an archive?==
 
#Create the directory <code>/tmp/extract1</code> and make it your current working directory (change into that directory).
#Unzip the first archive you created:
#*<code>gunzip /tmp/archive1.tar.gz</code>
#Extract the files from the first archive:
#*<code>tar xvf /tmp/archive1.tar</code>
#Are all the files there?
#Compare <code>/tmp/extract1/FAQ</code> and <code>/usr/share/doc/bash-3.2/FAQ</code>. Are they exactly the same? Why?
5. Create the directory /tmp/extract2 and make it your current working directory.
6. Extract the files from the second archive:
 
tar xvzf /tmp/archive2.tgz
 
Note that this time a separate gunzip command was not needed. Why?
7. Compare the FAQ file in this directory with the original file. Are they exactly the same?
 
Answer the Investigation 3 question.
9
edits

Navigation menu