<?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: mv command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743803#M497075</link>
    <description>&lt;P&gt;Your first question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; #mv data.zip /log&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; From the above command what will happen. Please explain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, the simple explanation is that the data.zip file will be moved from the /tmp directory to the /log directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without know **exactly** how the 'mv' code is written, the file is likely copied from the current location to the new location and once the copy is verified the file is removed from the original location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your second question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mv log /tmp&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Or&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mv log /tmp/&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; From the above command which one is correct&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't matter.&amp;nbsp; Either one will do the same thing.&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2015 20:00:14 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2015-05-12T20:00:14Z</dc:date>
    <item>
      <title>mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743787#M497073</link>
      <description>I have one doubt&lt;BR /&gt;#pwd&lt;BR /&gt;#/tmp&lt;BR /&gt;#ls -ltr&lt;BR /&gt;-rwx-rwx-rwx. data.zip&lt;BR /&gt;#mv data.zip /log&lt;BR /&gt;&lt;BR /&gt;From the above command what will happen. Please explain</description>
      <pubDate>Tue, 12 May 2015 19:28:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743787#M497073</guid>
      <dc:creator>rajesh73</dc:creator>
      <dc:date>2015-05-12T19:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743790#M497074</link>
      <description>If i need to move some files to some other location&lt;BR /&gt;&lt;BR /&gt;mv log /tmp&lt;BR /&gt;&lt;BR /&gt;Or&lt;BR /&gt;&lt;BR /&gt;mv log /tmp/&lt;BR /&gt;&lt;BR /&gt;From the above command which one is correct</description>
      <pubDate>Tue, 12 May 2015 19:31:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743790#M497074</guid>
      <dc:creator>rajesh73</dc:creator>
      <dc:date>2015-05-12T19:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743803#M497075</link>
      <description>&lt;P&gt;Your first question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; #mv data.zip /log&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; From the above command what will happen. Please explain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, the simple explanation is that the data.zip file will be moved from the /tmp directory to the /log directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without know **exactly** how the 'mv' code is written, the file is likely copied from the current location to the new location and once the copy is verified the file is removed from the original location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your second question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mv log /tmp&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Or&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mv log /tmp/&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; From the above command which one is correct&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't matter.&amp;nbsp; Either one will do the same thing.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 20:00:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743803#M497075</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2015-05-12T20:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743871#M497076</link>
      <description>-------Well, the simple explanation is that the data.zip file will be moved from the /tmp directory to the /log directory.&lt;BR /&gt;&lt;BR /&gt;From the command not create log directory in /. it will create log file. In /</description>
      <pubDate>Wed, 13 May 2015 02:54:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743871#M497076</guid>
      <dc:creator>rajesh73</dc:creator>
      <dc:date>2015-05-13T02:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743911#M497077</link>
      <description>&lt;P&gt;&amp;gt; From the command not create log directory in /. it will create log file. In /&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Everything's complicated.&amp;nbsp; A command like:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mv path1/name1 path2/name2&lt;BR /&gt;can do different things, depending on what path2/name2 is.&amp;nbsp; If&lt;BR /&gt;path2/name2 is an existing directory, then the file at path1/name1 will&lt;BR /&gt;be moved into that directory, becoming "path2/name2/name1".&lt;BR /&gt;If path2/name2 does not exist, then the file at path1/name1 will be&lt;BR /&gt;moved to a file at "path2/name2".&amp;nbsp; (And if path2/name2 is an existing&lt;BR /&gt;regular file, then it will be overwritten.)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If you want the file "data.zip" to be moved into the _directory_&lt;BR /&gt;"/log", and you don't know if the directory "/log" exists, then you&lt;BR /&gt;might be happier with a command like:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mv data.zip /log/data.zip&lt;BR /&gt;or:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mv data.zip /log/&lt;BR /&gt;either of which makes it clear that "/log" is expected to be a&lt;BR /&gt;directory.&amp;nbsp; And these commands should fail if "/log" is not a directory.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; mv log /tmp&lt;BR /&gt;&amp;gt; Or&lt;BR /&gt;&amp;gt; mv log /tmp/&lt;BR /&gt;&amp;gt; From the above command which one is correct [?]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Sadly, that's not enough information.&amp;nbsp; The result depends on whether&lt;BR /&gt;"/tmp" is a directory.&amp;nbsp; The second one is probably what you want, but&lt;BR /&gt;the first can work if "/tmp" is a directory.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 06:11:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743911#M497077</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2015-05-13T06:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743917#M497078</link>
      <description>Now I told clearly what mistake I done&lt;BR /&gt;&lt;BR /&gt;I want to move data.zip file to /tmp/log&lt;BR /&gt;#pwd&lt;BR /&gt;#/tmp&lt;BR /&gt;#ls -ltr&lt;BR /&gt;-rwx-rwx-rwx. data.zip&lt;BR /&gt;#mv data.zip /log&lt;BR /&gt;&lt;BR /&gt;But I unfortunately u missed to put tmp in the above command&lt;BR /&gt;&lt;BR /&gt;So any impact happen from the above command&lt;BR /&gt;</description>
      <pubDate>Wed, 13 May 2015 06:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6743917#M497078</guid>
      <dc:creator>rajesh73</dc:creator>
      <dc:date>2015-05-13T06:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6744208#M497080</link>
      <description>&lt;P&gt;&amp;gt; So any impact happen from the above command&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Is that a question?&amp;nbsp; If so, then using a question mark ("?") can be&lt;BR /&gt;helpful.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Define "impact"?&amp;nbsp; Which "the above command"?&amp;nbsp; If you moved a file&lt;BR /&gt;into the wrong place, then you should be able to move it from there into&lt;BR /&gt;the right place.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 16:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6744208#M497080</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2015-05-13T16:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: mv command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6744639#M497081</link>
      <description>&lt;P&gt;impact?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well if /log is suppost be on a different file system and is not mounted. You risk filling the / file system depending on the size of the file being moved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is no /log at all. Then you likely to create a file called "log" in the / file system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 17:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-command/m-p/6744639#M497081</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2015-05-14T17:58:43Z</dc:date>
    </item>
  </channel>
</rss>

