<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tar in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875546#M279178</link>
    <description>normally I used the easy way. go to that desire directory and untar it&lt;BR /&gt;&lt;BR /&gt;cd /tmp&lt;BR /&gt;tar xvf file.tar&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;tar xvf file.tar .&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 06 Oct 2006 04:08:02 GMT</pubDate>
    <dc:creator>Rashid Hamid</dc:creator>
    <dc:date>2006-10-06T04:08:02Z</dc:date>
    <item>
      <title>tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875540#M279172</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What is the command syntax for untarring tar file to specified path ?&lt;BR /&gt;&lt;BR /&gt;What is mega tar ? Is it tar of many tar files ? Is there any advantage of it ? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Oct 2006 22:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875540#M279172</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-10-05T22:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875541#M279173</link>
      <description>How you created the tar file determines how you un-tar it.&lt;BR /&gt;&lt;BR /&gt;If you used explicit paths, like 'tar -cvf file.tar /home/me' then it is difficult to restore to any place other than /home/me.&lt;BR /&gt;&lt;BR /&gt;However if you used relative paths:&lt;BR /&gt;&lt;BR /&gt;# cd /home&lt;BR /&gt;# tar -cvf file.tar ./me&lt;BR /&gt;&lt;BR /&gt;Then it is easier to restore somewhere else.&lt;BR /&gt;&lt;BR /&gt;# cd /newdir&lt;BR /&gt;# tar -xvf file.tar&lt;BR /&gt;&lt;BR /&gt;This will restore ./me in the /newdir directory.&lt;BR /&gt;&lt;BR /&gt;If you must restore a tar file created with explicit paths to a different directory you can make use of the 'pax' command.  Do a 'man pax' for details.  I can't recall the exact syntax you would need at the moment.&lt;BR /&gt;&lt;BR /&gt;As for "mega tar" -- I have no idea what it means.  I guess it would depend entirely on the context in which it is being used.</description>
      <pubDate>Thu, 05 Oct 2006 23:22:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875541#M279173</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-10-05T23:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875542#M279174</link>
      <description>The untar (tar -xvf) will untar in the directory where you run the command from if the tar was not run with a absolute path. meaning...&lt;BR /&gt;say you tar the files tar -cvf /tmp/tcb/tar /tcb&lt;BR /&gt;then no matter from where you untar them the files will always be untared in /tcb&lt;BR /&gt;But if you cd to the directory &lt;BR /&gt;cd / and then tar the directory then when you untar them it will create tar/files...in the directory from where you run the untar command&lt;BR /&gt;&lt;BR /&gt;Never heard of mega tar&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Oct 2006 23:26:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875542#M279174</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2006-10-05T23:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875543#M279175</link>
      <description>hi shiv,&lt;BR /&gt;&lt;BR /&gt;To create a tar you can use &lt;BR /&gt;&lt;BR /&gt;tar -cvf destination(test.tar) source(/home)&lt;BR /&gt;&lt;BR /&gt;to untar you can use&lt;BR /&gt;&lt;BR /&gt;tar -xvf destination(path of new dir) source(test.tar)&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 05 Oct 2006 23:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875543#M279175</guid>
      <dc:creator>Gurumanickam</dc:creator>
      <dc:date>2006-10-05T23:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875544#M279176</link>
      <description>Shiv, you can browse the content of tar file with: tar -tvf /aaa/bbb/xxx.tar</description>
      <pubDate>Fri, 06 Oct 2006 02:02:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875544#M279176</guid>
      <dc:creator>Yang Qin_1</dc:creator>
      <dc:date>2006-10-06T02:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875545#M279177</link>
      <description>4 basic tar commands:&lt;BR /&gt;&lt;BR /&gt;c -&amp;gt; create&lt;BR /&gt;x -&amp;gt; extract&lt;BR /&gt;t -&amp;gt; type&lt;BR /&gt;u -&amp;gt; update</description>
      <pubDate>Fri, 06 Oct 2006 03:42:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875545#M279177</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2006-10-06T03:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875546#M279178</link>
      <description>normally I used the easy way. go to that desire directory and untar it&lt;BR /&gt;&lt;BR /&gt;cd /tmp&lt;BR /&gt;tar xvf file.tar&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;tar xvf file.tar .&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Oct 2006 04:08:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875546#M279178</guid>
      <dc:creator>Rashid Hamid</dc:creator>
      <dc:date>2006-10-06T04:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875547#M279179</link>
      <description>I am just curious to know some more opinions of our respected Gurus on this issue.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shiv</description>
      <pubDate>Sat, 07 Oct 2006 00:04:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875547#M279179</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-10-07T00:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875548#M279180</link>
      <description>It would help to know exactly what's in your&lt;BR /&gt;"tar" archive ("tar t"), and where you'd like&lt;BR /&gt;the files to end up.  Knowing neither where&lt;BR /&gt;you're starting nor where you wish to go&lt;BR /&gt;makes it hard to say how you should try to&lt;BR /&gt;get there.  Creating the archive with&lt;BR /&gt;absolute path names, for example, can make it&lt;BR /&gt;harder to control the path names of the files&lt;BR /&gt;when they're extracted.&lt;BR /&gt;&lt;BR /&gt;The "tar" programs which come with most&lt;BR /&gt;commercial UNIX operating systems tend to be&lt;BR /&gt;rather limited.  With HP-UX, an alternative,&lt;BR /&gt;"pax", offers a "-s" option which can be used&lt;BR /&gt;to transform file names when creating an&lt;BR /&gt;archive or extractling files from one.&lt;BR /&gt;("man pax".)&lt;BR /&gt;&lt;BR /&gt;Similarly, GNU "tar" offers options like&lt;BR /&gt;--strip and --transform, which also can be&lt;BR /&gt;used to transform file names similarly.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/tar/" target="_blank"&gt;http://www.gnu.org/software/tar/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/tar/manual/index.html" target="_blank"&gt;http://www.gnu.org/software/tar/manual/index.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/tar/manual/html_node/transform.html" target="_blank"&gt;http://www.gnu.org/software/tar/manual/html_node/transform.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Oct 2006 00:34:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875548#M279180</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-10-07T00:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875549#M279181</link>
      <description>Shalom Shiv,&lt;BR /&gt;&lt;BR /&gt;It's been a while since I answered one of your posts so HI!.&lt;BR /&gt;&lt;BR /&gt;Generally, I am lazy so I put the tar file where I want it to untar and do tar xvf filename.tar&lt;BR /&gt;&lt;BR /&gt;There are options built into tar for redirecting the output but I've found they don't always work as expected.&lt;BR /&gt;&lt;BR /&gt;tar tvf lets me look at the tar archive without actually untarring it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sat, 07 Oct 2006 12:59:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875549#M279181</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-10-07T12:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875550#M279182</link>
      <description>Which option allows me for untarring at different locations ? sorry to ask you because i just can't check it today being sunday here. Now i work for different company and i don't have remote access to the servers from home so that i can verify right now. &lt;BR /&gt;&lt;BR /&gt;Secondly, does it work with GNU's tar ?&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Shiv</description>
      <pubDate>Sun, 08 Oct 2006 12:42:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875550#M279182</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-10-08T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875551#M279183</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Which option allows me for untarring at different locations?&lt;BR /&gt;&lt;BR /&gt;As Patrick noted, if you made your 'tar' archive with *relative* paths, then this is as simple as he showed in his example.&lt;BR /&gt;&lt;BR /&gt;If you created your archive with absolute paths, you can use 'pax'.  Consider the case where files in '/olddir' are to be extracted and placed into '/newdir'.  The '/newdir' directory does need not exist, either:&lt;BR /&gt;&lt;BR /&gt;# pax -r -p e -s '%^/olddir/%^/newdir/%' -f /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;...or:&lt;BR /&gt;&lt;BR /&gt;# pax -r -p e -s '%^/%/newdir/%' -f /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;Notice that I've used the caret (^) to anchor the slach (/) to the beginning of the string specified -- that is to denote the absolute path's starting point.&lt;BR /&gt;&lt;BR /&gt;As for being "at home" and not have a server available, you still have the HP documentation site, in this case the *manpages*:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/hpuxman_pages.html" target="_blank"&gt;http://www.docs.hp.com/en/hpuxman_pages.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For GNU software, there is the invaluable resource here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/manual/manual.html" target="_blank"&gt;http://www.gnu.org/manual/manual.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Oct 2006 13:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875551#M279183</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-10-08T13:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875552#M279184</link>
      <description>Thanks James and others!!&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Shiv</description>
      <pubDate>Sun, 08 Oct 2006 13:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3875552#M279184</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-10-08T13:18:18Z</dc:date>
    </item>
  </channel>
</rss>

