<?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 really simple cp syntax question in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031435#M65669</link>
    <description>I would like to copy all files and directories in source location to target location. I'm sure my answer is in the man cp file, but I am having trouble. I thought it would be easiest to first be in the target directory, and then enter the following, using the period as the current dir:&lt;BR /&gt;&lt;BR /&gt;cp /home/jbollyn/test .&lt;BR /&gt;&lt;BR /&gt;My goal is to copy all files in the test dir into the current dir, and also copy all the child dirs and files of test to the target location, creating the complete dir structure.&lt;BR /&gt;&lt;BR /&gt;So you see, I told you it was simple.&lt;BR /&gt;&lt;BR /&gt;You can expect to see more bonehead questions from me, until I get up to speed (which might take awhile).&lt;BR /&gt;&lt;BR /&gt;If it matters, I am running Debian 3.1.&lt;BR /&gt;&lt;BR /&gt;J.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 01 Mar 2007 19:03:31 GMT</pubDate>
    <dc:creator>Jay Bollyn</dc:creator>
    <dc:date>2007-03-01T19:03:31Z</dc:date>
    <item>
      <title>really simple cp syntax question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031435#M65669</link>
      <description>I would like to copy all files and directories in source location to target location. I'm sure my answer is in the man cp file, but I am having trouble. I thought it would be easiest to first be in the target directory, and then enter the following, using the period as the current dir:&lt;BR /&gt;&lt;BR /&gt;cp /home/jbollyn/test .&lt;BR /&gt;&lt;BR /&gt;My goal is to copy all files in the test dir into the current dir, and also copy all the child dirs and files of test to the target location, creating the complete dir structure.&lt;BR /&gt;&lt;BR /&gt;So you see, I told you it was simple.&lt;BR /&gt;&lt;BR /&gt;You can expect to see more bonehead questions from me, until I get up to speed (which might take awhile).&lt;BR /&gt;&lt;BR /&gt;If it matters, I am running Debian 3.1.&lt;BR /&gt;&lt;BR /&gt;J.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2007 19:03:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031435#M65669</guid>
      <dc:creator>Jay Bollyn</dc:creator>
      <dc:date>2007-03-01T19:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: really simple cp syntax question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031436#M65670</link>
      <description>Jay,&lt;BR /&gt;&lt;BR /&gt;To do a copy including child dirs (known as a recursive copy) use the -r option.  The command would be:&lt;BR /&gt;&lt;BR /&gt;cp -r /home/jbollyn/test .&lt;BR /&gt;&lt;BR /&gt;vic&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2007 19:16:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031436#M65670</guid>
      <dc:creator>Victor Semaska_3</dc:creator>
      <dc:date>2007-03-01T19:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: really simple cp syntax question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031437#M65671</link>
      <description>Yeah, I thought 'recursive' might be involved in this, but I need to get more familiar with this term.&lt;BR /&gt;&lt;BR /&gt;Even though this is just a test server, I really don't want to hose it just for fun. &lt;BR /&gt;&lt;BR /&gt;I'm sure you are correct. I will check it out tomorrow from the office and post back.&lt;BR /&gt;&lt;BR /&gt;J.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2007 19:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031437#M65671</guid>
      <dc:creator>Jay Bollyn</dc:creator>
      <dc:date>2007-03-01T19:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: really simple cp syntax question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031438#M65672</link>
      <description>You should use:&lt;BR /&gt;&lt;BR /&gt;cp -Rp /home/jbollyn/test/* .&lt;BR /&gt;&lt;BR /&gt;This will copy the content of the test directory without copying the test directory itself. The -p option preserves the file permissions.</description>
      <pubDate>Fri, 02 Mar 2007 07:20:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031438#M65672</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-03-02T07:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: really simple cp syntax question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031439#M65673</link>
      <description>thanks both</description>
      <pubDate>Fri, 02 Mar 2007 09:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/really-simple-cp-syntax-question/m-p/5031439#M65673</guid>
      <dc:creator>Jay Bollyn</dc:creator>
      <dc:date>2007-03-02T09:06:40Z</dc:date>
    </item>
  </channel>
</rss>

