13,420
edits
Changes
no edit summary
#Boot up your '''centos3''' VM.
#Change your working directory to <b><code><span style="color:#3366CC;font-size:1.2em;">'''/usr/share/doc/sudo*</span></code></b>'''#Use the tar (tape archiver) command to create an archive file named <b>'''/tmp/archive1.tar</b>'''
#*<b><code><span style="color:#3366CC;font-size:1.2em;">tar cvf /tmp/archive1.tar .</span></code></b>
|}
<ol>
<li value="4">What do the options '''c''', '''v''', and '''f ''' mean?</li>
<li>Record the archive file size.</li>
<li>Compress the file using <code>'''gzip</code>''':
<ul>
<li><b><code><span style="color:#3366CC;font-size:1.2em;">gzip /tmp/archive1.tar</span></code></b></li>
</li>
<li>Record the archive file size after compression.</li>
<li>Make sure you're still in <code>'''/usr/share/doc/sudo*</code> ''' and then create a compressed archive:
<ul>
<li><b><code><span style="color:#3366CC;font-size:1.2em;">tar cvzf /tmp/archive2.tgz .</span></code></b></li>
</ul>
</li>
<li>What does the <b><code><span style="color:#3366CC;font-size:1.2em;">'''z</span></code></b> ''' option do?</li> <li>Compare the sizes of <b><code><span style="color:#3366CC;font-size:1.2em;">'''/tmp/archive1.tar.gz</span></code></b> ''' and <b><code><span style="color:#3366CC;font-size:1.2em;">'''/tmp/archive2.tgz</span></code></b>'''. Why are they so close in size?</li>
</ol>