Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - Fedora17

108 bytes added, 10:10, 13 February 2010
no edit summary
==Investigation 2: How do you create an archive file?==
{{Admon/note|Use fedora3|Perform these steps in the '''fedora3''' virtual machine.}}
{{Admon/important | Warning! | Don't miss the '''.''' at the end of the <code>tar</code> commands below! It specifies what should go into the archive: the contents of the current directory.}}
#Change your working directory to <code>/usr/share/doc/sudo*</code>
#Use the tar (tape archiver) command to create an archive file named <code>/tmp/archive1.tar</code>
#*<code>tar cvf /tmp/archive1.tar .</code>
#*What do the options c, v, and f mean?
#Record the archive file size.
#Compress the file using <code>gzip</code>:
#*<code>tar cvzf /tmp/archive2.tgz .</code>
#What does the <code>z</code> option do?
# Compare the sizes of <code>/tmp/archive1.tar.gz </code> and <code>/tmp/archive2.tgz</code>. Why are they so close in size?
Answer the Investigation 2 question.
9
edits