Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - Fedora17

922 bytes added, 09:52, 13 February 2010
no edit summary
Make sure that your lab notes answer the Investigation 1 question.
 
==Investigation 2: How do you create an archive file?==
 
#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>
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.
 
tar cvf /tmp/archive1.tar .
 
What do the options c, v, and f mean?
3. Record the archive file size.
4. Compress the file using gzip:
 
gzip /tmp/archive1.tar
 
5. Record the archive file size after compression.
6. Make sure you're still in /usr/share/doc/bash-3.2 and then create a compressed archive:
 
tar cvzf /tmp/archive2.tgz .
 
What does the z 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