Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - Fedora17

6 bytes added, 10:07, 13 February 2010
Investigation 2: How do you create an archive file?
{{Admon/important | Warning! | Don't miss the '''.''' at the end of the next command! It specifies what should go into the archive: the contents of the current directory.}}
#*<code>tar cvf /tmp/archive1.tar .</code>
  #*What do the options c, v, and f mean? 3. #Record the archive file size. 4. #Compress the file using <code>gzip</code> #*<code>gzip /tmp/archive1.tar</code>  5. #Record the archive file size after compression. 6. #Make sure you're still in <code>/usr/share/doc/bash-3.2 sudo*</code> and then create a compressed archive:  #*<code>tar cvzf /tmp/archive2.tgz .</code>  #What does the <code>z </code> option do? 7. # Compare the sizes of /tmp/archive1.tar.gz and /tmp/archive2.tgz. Why are they so close in size?
Answer the Investigation 2 question.
9
edits