<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Cp (Unix) - Page 6 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=cp_(Unix)&amp;p=5">1.Previous</a><br />
<a accesskey="3" href="page.php?w=cp_%28Unix%29&amp;p=7">3.Next</a>
</p>
<p>directory as a subdirectory.</p>

<p> cp -r|-R [-fHip] [--] sourcedirectory... targetdirectory</p>

<p><big> Examples </big></p>
<p>This copies file <b>prog.c</b> to file <b>prog.bak</b>. If <b>prog.bak</b> does not already exist, this creates it. If it does exist, its content will be replaced.</p>

<p> cp prog.c prog.bak</p>

<p>This copies the files <b>jones</b> and <b>smith</b> into the pre-existing directory <b>clients</b>.</p>

<p> cp jones smith clients</p>

<p>This copies file <b>smith</b> to a file named <b>smith.jr</b>. Instead of creating a</p><p>
<a accesskey="1" href="page.php?w=cp_(Unix)&amp;p=5">1.Previous</a><br />
<a accesskey="3" href="page.php?w=cp_%28Unix%29&amp;p=7">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
