On 5/3/07, <b class="gmail_sendername">Kit Goins</b> <<a href="mailto:kompukit@gmail.com">kompukit@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
it's <br><br><pre><kbd><font size="4"><span style="font-weight: bold;">tar -xvf collection.tar</span><br style="font-weight: bold;"></font><br>thats it...nothing more...this will unpack the <br>archive in the present directory
<br><br></kbd></pre><br><br><div><div><span class="e" id="q_11253752b0240345_1"><span class="gmail_quote">On 5/3/07, <b class="gmail_sendername">User Iam</b> <<a href="mailto:vramnum10@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
vramnum10@gmail.com</a>> wrote:</span></span></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_11253752b0240345_3">
Hi<br><br>can't seem to get this right..<br><br>Need to untar a file and put it in a directory in root /<br><br>SO it is tar -xvf some.tar ????<br><br><br>TIA<br><span><br>User Iam</span><br></span></div><a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
</a><br></blockquote></div>
<br><-- snip --><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank"></a><br><br></blockquote></div><br>You can use the -C option to change directory prior to untar, this way you don't have to first navigate to the target directory, like this:
<br><br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;"># tar -xvf some.tar -C /</span><br></div><br>Of course if you are not root, you need to use sudo.<br><br>man tar is a great thing. :)
<br><br>-- <br>Mitch<br>