<?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 help with tar please in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584079#M32155</link>
    <description>hello,&lt;BR /&gt;&lt;BR /&gt;I have a directory caled /xx/xxx/prod. I would like to tar everything in teh prod directory to a directory called /tmp. How would I do this with the tar -cvf command so that my tar file is now located in /tmp directory. Any help will be greatly appreciated.</description>
    <pubDate>Mon, 24 Sep 2001 18:27:05 GMT</pubDate>
    <dc:creator>Ragni Singh</dc:creator>
    <dc:date>2001-09-24T18:27:05Z</dc:date>
    <item>
      <title>help with tar please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584079#M32155</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;I have a directory caled /xx/xxx/prod. I would like to tar everything in teh prod directory to a directory called /tmp. How would I do this with the tar -cvf command so that my tar file is now located in /tmp directory. Any help will be greatly appreciated.</description>
      <pubDate>Mon, 24 Sep 2001 18:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584079#M32155</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2001-09-24T18:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: help with tar please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584080#M32156</link>
      <description>If you're just trying to create a tar archive in the /tmp directory, do the following:&lt;BR /&gt;&lt;BR /&gt;cd /xx/xxx&lt;BR /&gt;tar cvf /tmp/prod.tar prod&lt;BR /&gt;&lt;BR /&gt;this will create a tar file called prod.tar in /tmp with the contents of ther prod directory in /xx/xxx&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Mon, 24 Sep 2001 18:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584080#M32156</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-09-24T18:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: help with tar please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584081#M32157</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;tar -cvf /tmp/my.tar /xx/xxx/prod</description>
      <pubDate>Mon, 24 Sep 2001 18:30:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584081#M32157</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2001-09-24T18:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: help with tar please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584082#M32158</link>
      <description># cd /xxx/xxx/&lt;BR /&gt;# tar -cvf /tmp/prod.tar ./prod&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;# cd /xxx/xxx/prod&lt;BR /&gt;# tar -cvf /tmp/prod.tar .&lt;BR /&gt;(notice that there is a space between /tmp/prod.tar and the dot)</description>
      <pubDate>Mon, 24 Sep 2001 18:30:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584082#M32158</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-09-24T18:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: help with tar please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584083#M32159</link>
      <description>and then how would I untar this to the /prod directory. I would like to put all the contents in the /xx/xxx/prod directory. Thanks for the help</description>
      <pubDate>Mon, 24 Sep 2001 18:37:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584083#M32159</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2001-09-24T18:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: help with tar please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584084#M32160</link>
      <description>Try:&lt;BR /&gt;&lt;BR /&gt;cd /prod&lt;BR /&gt;tar -xvf /tmp/my.tar&lt;BR /&gt;&lt;BR /&gt;If you used my example above it would put the full path on each file which probably isn't what you want.  Better to do it like the other replies and 'cd' to the directory first.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Sep 2001 18:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584084#M32160</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2001-09-24T18:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: help with tar please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584085#M32161</link>
      <description>If you created the tar file with the following:&lt;BR /&gt;# cd /xxx/xxx&lt;BR /&gt;# tar -cvf /tmp/prod.tar ./prod&lt;BR /&gt;&lt;BR /&gt;Then untar into /prod directory by:&lt;BR /&gt;# cd /&lt;BR /&gt;# tar -xvf /tmp/prod.tar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you created the tar file with the following:&lt;BR /&gt;#cd /xxx/xxx/prod&lt;BR /&gt;tar -cvf /tmp/prod.tar .&lt;BR /&gt;&lt;BR /&gt;Then untar into /prod directory by:&lt;BR /&gt;# cd /prod&lt;BR /&gt;# tar -xvf /tmp/prod.tar&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Sep 2001 18:43:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584085#M32161</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-09-24T18:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: help with tar please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584086#M32162</link>
      <description>This is how I move files using tar:&lt;BR /&gt;   cd /xx/xxx/prod&lt;BR /&gt;   tar cf - . |(cd /tmp; tar xpf -)&lt;BR /&gt;This command will tar up the files, and in the sub-shell (inside parens) will move to the new directory and untar the files.&lt;BR /&gt;&lt;BR /&gt;If this is done as "root" it will save all the permission and date/timestamp.&lt;BR /&gt;&lt;BR /&gt;   art&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Sep 2001 21:36:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-tar-please/m-p/2584086#M32162</guid>
      <dc:creator>Arthur Bazan</dc:creator>
      <dc:date>2001-09-24T21:36:16Z</dc:date>
    </item>
  </channel>
</rss>

