Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - Fedora17

18 bytes removed, 10:23, 10 February 2012
no edit summary
===Investigation 2: How do you restore files from an archive?===
{{Admon/note|Use Remain in your fedora3VM|Perform these steps in the '''fedora3''' virtual machine.}}#Create the directory <code>/tmp/extract1</code> and make it your current working directory (change into that #Change to the <code>/tmp/extract1</code> directory).
#Move the file archive1.tar.gz to your current directory.
#Unzip the first archive you created:
#Are all the files there?
#Compare <code>/tmp/extract1/README</code> and <code>/usr/share/doc/sudo*/README</code>. Are they exactly the same? Why?
#Create the directory <code>/tmp/extract2</code> and make it your current working directory.#Move the file archive2.tgz to your current the <code>/tmp/extract2</code> directory.
#Extract the files from the second archive:
#*<code>tar xvzf /tmp/extract2/archive2.tgz</code>
#Note that this time a separate <code>gunzip</code> command was not needed. Why?
#Repeat the previous command, leaving out the option "z". Does it work? Why?
13,420
edits