{"id":323,"date":"2017-09-17T13:43:30","date_gmt":"2017-09-17T13:43:30","guid":{"rendered":"https:\/\/d1m0.com\/?p=323"},"modified":"2017-09-17T13:46:32","modified_gmt":"2017-09-17T13:46:32","slug":"how-to-extract-a-tar-files-to-a-different-directory","status":"publish","type":"post","link":"https:\/\/d1m0.com\/?p=323","title":{"rendered":"How To Extract a Tar Files To a Different Directory"},"content":{"rendered":"<p>Extract files to another directory<\/p>\n<blockquote><p>tar xf file.tar -C \/path\/to\/directory<br \/>\ntar xf file.tar &#8211;directory \/path\/to\/directory<\/p><\/blockquote>\n<p>To extract a foo.tar.bz2 (.tbz, .tbz2 &amp; .tb2 extension file) tarball to \/tmp\/bar, enter:<\/p>\n<p><!--more--><\/p>\n<blockquote><p>mkdir \/tmp\/bar<br \/>\ntar -jxvf foo.tar.bz2 -C \/tmp\/bar<\/p><\/blockquote>\n<p>To see a progress pass the -v option:<\/p>\n<blockquote><p>tar -xvf $HOME\/etc.backup.tar -C \/tmp\/data<\/p><\/blockquote>\n<p>Extract specific files too use:<\/p>\n<blockquote><p>tar -xvf $HOME\/etc.backup.tar file1 file2 file3 dir1 -C \/tmp\/data<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Extract files to another directory tar xf file.tar -C \/path\/to\/directory tar xf file.tar &#8211;directory \/path\/to\/directory To extract a foo.tar.bz2 (.tbz, .tbz2 &amp; .tb2 extension file) tarball to \/tmp\/bar, enter:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-323","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=323"}],"version-history":[{"count":2,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/323\/revisions"}],"predecessor-version":[{"id":325,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/323\/revisions\/325"}],"wp:attachment":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}