Changeset View
Changeset View
Standalone View
Standalone View
bin/cp/cp.1
Show All 26 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)cp.1 8.3 (Berkeley) 4/18/94 | .\" @(#)cp.1 8.3 (Berkeley) 4/18/94 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd June 6, 2015 | .Dd September 8, 2020 | ||||
.Dt CP 1 | .Dt CP 1 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm cp | .Nm cp | ||||
.Nd copy files | .Nd copy files | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Oo | .Oo | ||||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
.It Fl R | .It Fl R | ||||
If | If | ||||
.Ar source_file | .Ar source_file | ||||
designates a directory, | designates a directory, | ||||
.Nm | .Nm | ||||
copies the directory and the entire subtree connected at that point. | copies the directory and the entire subtree connected at that point. | ||||
If the | If the | ||||
.Ar source_file | .Ar source_file | ||||
ends in a | ends in | ||||
.Pa / , | .Pa /. , | ||||
the contents of the directory are copied rather than the | the contents of the directory are copied rather than the | ||||
directory itself. | directory itself. | ||||
This option also causes symbolic links to be copied, rather than | This option also causes symbolic links to be copied, rather than | ||||
indirected through, and for | indirected through, and for | ||||
.Nm | .Nm | ||||
to create special files rather than copying them as normal files. | to create special files rather than copying them as normal files. | ||||
Created directories have the same mode as the corresponding source | Created directories have the same mode as the corresponding source | ||||
directory, unmodified by the process' umask. | directory, unmodified by the process' umask. | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |