<?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: copy all files and dirs including hidden ones in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-all-files-and-dirs-including-hidden-ones/m-p/6701120#M497002</link>
    <description>&lt;P&gt;&amp;gt;&amp;gt; since cp -pR does not copy them all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cp will copy what you tell it to copy.&lt;/P&gt;&lt;P&gt;However, if you are using * as a way to specify files and directories, you need to read about Filename Generation and Pattern Matching in your shell manual. The * character will &lt;STRONG&gt;not&lt;/STRONG&gt; match any file or directory that starts with the . (period or dot character). If you need to copy everything in a directory, don't use * but instead use . which means "everything in this current directory", like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# cd /tmp/olddir
# cp -rp . /var/tmp/newdir&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Or better yet, just specify the directory to be copied:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# cp -rp /tmp/olddir /var/tmp&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the directory olddir will be compleely copied to /var/tmp.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2015 18:04:43 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2015-01-28T18:04:43Z</dc:date>
    <item>
      <title>copy all files and dirs including hidden ones</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-all-files-and-dirs-including-hidden-ones/m-p/6701113#M497001</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to copy all files and dirs (includding hidden files) on a HP-UX 11.31 box, what would be the right command since cp -pR does not copy them all?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved&amp;nbsp;from General to HP-UX &amp;gt; languages. - Hp Forum Moderator&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 08:43:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-all-files-and-dirs-including-hidden-ones/m-p/6701113#M497001</guid>
      <dc:creator>loy4lplay</dc:creator>
      <dc:date>2015-01-29T08:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: copy all files and dirs including hidden ones</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-all-files-and-dirs-including-hidden-ones/m-p/6701120#M497002</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt; since cp -pR does not copy them all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cp will copy what you tell it to copy.&lt;/P&gt;&lt;P&gt;However, if you are using * as a way to specify files and directories, you need to read about Filename Generation and Pattern Matching in your shell manual. The * character will &lt;STRONG&gt;not&lt;/STRONG&gt; match any file or directory that starts with the . (period or dot character). If you need to copy everything in a directory, don't use * but instead use . which means "everything in this current directory", like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# cd /tmp/olddir
# cp -rp . /var/tmp/newdir&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Or better yet, just specify the directory to be copied:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# cp -rp /tmp/olddir /var/tmp&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the directory olddir will be compleely copied to /var/tmp.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 18:04:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-all-files-and-dirs-including-hidden-ones/m-p/6701120#M497002</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2015-01-28T18:04:43Z</dc:date>
    </item>
  </channel>
</rss>

