<?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: about tar command! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216723#M169568</link>
    <description>I almost never use the 'tar -cv filename' form of tar.  I always specify the '-f destination' option because I want to know EXACTLY where I am tarring to.&lt;BR /&gt;&lt;BR /&gt;Apparently you /dev/rmt/0m is not set as the default destination for tar so you are just getting output sent to stdout which is your terminal.  I am really not sure where that is set, but I wouldn't worry about it too much.  Just explicitly specify your destination and you can be fairly certain that it will work 100% of the time.</description>
    <pubDate>Thu, 11 Mar 2004 22:07:44 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2004-03-11T22:07:44Z</dc:date>
    <item>
      <title>about tar command!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216722#M169567</link>
      <description>when i execute #tar cv /etc/hosts command&lt;BR /&gt;the content of hosts is printed on console&lt;BR /&gt;i must #tar cvf /dev/rmt/0m /etc/hosts&lt;BR /&gt;why &lt;BR /&gt;is there something wrong with my tape drive or configuration ?</description>
      <pubDate>Thu, 11 Mar 2004 21:57:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216722#M169567</guid>
      <dc:creator>leyearn</dc:creator>
      <dc:date>2004-03-11T21:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: about tar command!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216723#M169568</link>
      <description>I almost never use the 'tar -cv filename' form of tar.  I always specify the '-f destination' option because I want to know EXACTLY where I am tarring to.&lt;BR /&gt;&lt;BR /&gt;Apparently you /dev/rmt/0m is not set as the default destination for tar so you are just getting output sent to stdout which is your terminal.  I am really not sure where that is set, but I wouldn't worry about it too much.  Just explicitly specify your destination and you can be fairly certain that it will work 100% of the time.</description>
      <pubDate>Thu, 11 Mar 2004 22:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216723#M169568</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-03-11T22:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: about tar command!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216724#M169569</link>
      <description>where can i change the configuration ?</description>
      <pubDate>Thu, 11 Mar 2004 22:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216724#M169569</guid>
      <dc:creator>leyearn</dc:creator>
      <dc:date>2004-03-11T22:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: about tar command!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216725#M169570</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;"f" in tar tvf specifies the device file name. and the default archive file for tar is /dev/rmt/0m.  There could not be any problem with your tape drive. &lt;BR /&gt;&lt;BR /&gt;see man tar for details&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;Naveej</description>
      <pubDate>Thu, 11 Mar 2004 22:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216725#M169570</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2004-03-11T22:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: about tar command!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216726#M169571</link>
      <description>On most systems tar defaults to the /dev/rmt/0m tape drive.&lt;BR /&gt;&lt;BR /&gt;Going to the console is unique.&lt;BR /&gt;&lt;BR /&gt;Like patrick says use the -f parameter and controll it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 11 Mar 2004 23:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216726#M169571</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-11T23:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: about tar command!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216727#M169572</link>
      <description>Hi,&lt;BR /&gt;Use insf -e and then try for your command If it does'nt work then better use tar -cvf /dev/rmt/0m &lt;FILE or="" directory=""&gt;.&lt;BR /&gt;Or create a script and user tar -cvf in it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;/FILE&gt;</description>
      <pubDate>Fri, 12 Mar 2004 01:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216727#M169572</guid>
      <dc:creator>Shaikh Imran</dc:creator>
      <dc:date>2004-03-12T01:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: about tar command!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216728#M169573</link>
      <description>This is rather odd. The destination for tar has defaulted to /dev/rmt/0m at least since HP-UX 3.1/5.2.  Which version of HP-UX are you running?&lt;BR /&gt;Also you could check which tar you are running with 'which tar'..  The run a what on that tar..  In one command you could run 'what $(which tar)'.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Trond</description>
      <pubDate>Fri, 12 Mar 2004 02:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216728#M169573</guid>
      <dc:creator>Trond Haugen</dc:creator>
      <dc:date>2004-03-12T02:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: about tar command!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216729#M169574</link>
      <description>nvl2:/&amp;gt; uname -a&lt;BR /&gt;HP-UX nvl2 B.11.00 A 9000/861 2003908693 two-user license&lt;BR /&gt;nvl1:/&amp;gt; which tar&lt;BR /&gt;/usr/local/bin/tar&lt;BR /&gt;nvl1:/&amp;gt; echo $PATH&lt;BR /&gt;/usr/sbin:/usr/local/bin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/sbin:/etc:/&lt;BR /&gt;opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/con&lt;BR /&gt;trib/bin/X11:/usr/bin/X11:/opt/hparray/bin:/opt/ignite/bin:/opt/resmon/bin:/usr/&lt;BR /&gt;sbin/diag/contrib:/opt/pred/bin:/sbin:/home/root&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;now i know i am using the /usr/local/bin/tar&lt;BR /&gt;is there difference among /usr/bin/tar , /sbin/tar and /usr/local/bin/tar&lt;BR /&gt;&lt;BR /&gt;how can i change the PATH enviroment variable to move /usr/bin to be before /usr/local/bin?&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2004 04:00:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216729#M169574</guid>
      <dc:creator>leyearn</dc:creator>
      <dc:date>2004-03-12T04:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: about tar command!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216730#M169575</link>
      <description>I believe you have found the root cause.&lt;BR /&gt;Yes, there is a difference between /usr/bin/tar, /sbin/tar and /usr/local/bin/tar. The first two are standard HP-UX and differ "only" in linking:&lt;BR /&gt;/usr/bin/tar:   PA-RISC1.1 shared executable dynamically linked&lt;BR /&gt;/sbin/tar:      PA-RISC1.1 shared executable&lt;BR /&gt;The latter "could be anything". And definitely seem to have stdout as default device.&lt;BR /&gt;&lt;BR /&gt;As for the order of patche in PATH all you have to do is change the order. But where to do that depends on where it is set. It could be the default path - check /etc/PATH or it could be set in /etc/profile or $HOME/.profile. I would reccomed putting /usr/local/bin and /usr/contrib/bin at the end as they mau contain commands with the same name as "system commands". As is the case with tar.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Trond&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2004 04:14:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216730#M169575</guid>
      <dc:creator>Trond Haugen</dc:creator>
      <dc:date>2004-03-12T04:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: about tar command!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216731#M169576</link>
      <description>I would guess that the /usr/local/bin/tar is probably the GNU Version of tar. That is definitely NOT the standard HP-UX version of tar.&lt;BR /&gt;&lt;BR /&gt;I have GNU tar installed on a couple of my machines and I just tried doing:&lt;BR /&gt;&lt;BR /&gt;# /opt/tar/bin/tar -cv /etc/hosts&lt;BR /&gt;&lt;BR /&gt;and the output printed to my terminal. I would say that this is probably normal for GNU tar.&lt;BR /&gt;&lt;BR /&gt;If you don't want this behavior, then just specify the '-f destination' option. Yes, it's a few more keystrokes. So what!&lt;BR /&gt;&lt;BR /&gt;As I said above, I much prefer knowing exactly where my output is going thus I always use '-f destination' in my tar commands.</description>
      <pubDate>Fri, 12 Mar 2004 09:12:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-tar-command/m-p/3216731#M169576</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-03-12T09:12:15Z</dc:date>
    </item>
  </channel>
</rss>

