Print this page
667 cp support for -a flag

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/cp.1
          +++ new/usr/src/man/man1/cp.1
   1    1  '\" te
        2 +.\" Copyright 2013 Nexenta Systems, Inc. All rights reserved.
   2    3  .\" Copyright (c) 1992, X/Open Company Limited All Rights Reserved
   3    4  .\" Copyright 1989 AT&T
   4    5  .\" Portions Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
   5    6  .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
   6    7  .\" http://www.opengroup.org/bookstore/.
   7    8  .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
   8    9  .\"  This notice shall appear on any product containing this material.
   9   10  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
  10   11  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
  11   12  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
  12      -.TH CP 1 "Oct 30, 2007"
       13 +.TH CP 1 "Apr 15, 2013"
  13   14  .SH NAME
  14   15  cp \- copy files
  15   16  .SH SYNOPSIS
  16   17  .LP
  17   18  .nf
  18      -\fB/usr/bin/cp\fR [\fB-fip@/\fR] \fIsource_file\fR \fItarget_file\fR
       19 +\fB/usr/bin/cp\fR [\fB-afip@/\fR] \fIsource_file\fR \fItarget_file\fR
  19   20  .fi
  20   21  
  21   22  .LP
  22   23  .nf
  23      -\fB/usr/bin/cp\fR [\fB-fip@/\fR] \fIsource_file\fR... \fItarget\fR
       24 +\fB/usr/bin/cp\fR [\fB-afip@/\fR] \fIsource_file\fR... \fItarget\fR
  24   25  .fi
  25   26  
  26   27  .LP
  27   28  .nf
  28      -\fB/usr/bin/cp\fR \fB-r\fR | \fB-R\fR [\fB-H\fR | \fB-L\fR | \fB-P\fR] [\fB-fip@/\fR] \fIsource_dir\fR... \fItarget\fR
       29 +\fB/usr/bin/cp\fR [\fB-r\fR | \fB-R\fR [\fB-H\fR | \fB-L\fR | \fB-P\fR]] [\fB-afip@/\fR] \fIsource_dir\fR... \fItarget\fR
  29   30  .fi
  30   31  
  31   32  .LP
  32   33  .nf
  33      -\fB/usr/bin/cp\fR \fB-R\fR | \fB-R\fR [\fB-H\fR | \fB-L\fR | \fB-P\fR] [\fB-fip@/\fR] \fIsource_dir\fR... \fItarget\fR
       34 +\fB/usr/bin/cp\fR [\fB-R\fR | \fB-R\fR [\fB-H\fR | \fB-L\fR | \fB-P\fR]] [\fB-afip@/\fR] \fIsource_dir\fR... \fItarget\fR
  34   35  .fi
  35   36  
  36   37  .LP
  37   38  .nf
  38      -\fB/usr/xpg4/bin/cp\fR [\fB-fip@/\fR] \fIsource_file\fR \fItarget_file\fR
       39 +\fB/usr/xpg4/bin/cp\fR [\fB-afip@/\fR] \fIsource_file\fR \fItarget_file\fR
  39   40  .fi
  40   41  
  41   42  .LP
  42   43  .nf
  43      -\fB/usr/xpg4/bin/cp\fR [\fB-fip@/\fR] \fIsource_file\fR... \fItarget\fR
       44 +\fB/usr/xpg4/bin/cp\fR [\fB-afip@/\fR] \fIsource_file\fR... \fItarget\fR
  44   45  .fi
  45   46  
  46   47  .LP
  47   48  .nf
  48      -\fB/usr/xpg4/bin/cp\fR \fB-r\fR | \fB-R\fR [\fB-H\fR | \fB-L\fR | \fB-P\fR] [\fB-fip@/\fR] \fIsource_dir\fR... \fItarget\fR
       49 +\fB/usr/xpg4/bin/cp\fR [\fB-r\fR | \fB-R\fR [\fB-H\fR | \fB-L\fR | \fB-P\fR]] [\fB-afip@/\fR] \fIsource_dir\fR... \fItarget\fR
  49   50  .fi
  50   51  
  51   52  .LP
  52   53  .nf
  53      -\fB/usr/xpg4/bin/cp\fR \fB-R\fR | \fB-R\fR [\fB-H\fR | \fB-L\fR | \fB-P\fR] [\fB-fip@/\fR] \fIsource_dir\fR... \fItarget\fR
       54 +\fB/usr/xpg4/bin/cp\fR [\fB-R\fR | \fB-R\fR [\fB-H\fR | \fB-L\fR | \fB-P\fR]] [\fB-afip@/\fR] \fIsource_dir\fR... \fItarget\fR
  54   55  .fi
  55   56  
  56   57  .SH DESCRIPTION
  57   58  .sp
  58   59  .LP
  59   60  In the first synopsis form, neither \fIsource_file\fR nor \fItarget_file\fR are
  60   61  directory files, nor can they have the same name. The \fBcp\fR utility copies
  61   62  the contents of \fIsource_file\fR to the destination path named by
  62   63  \fItarget_file\fR. If \fItarget_file\fR exists, \fBcp\fR overwrites its
  63   64  contents, but the mode (and \fBACL\fR if applicable), owner, and group
↓ open down ↓ 20 lines elided ↑ open up ↑
  84   85  \fIsource_dir\fR are copied to the directory specified by \fItarget\fR. Either
  85   86  the \fB-r\fR or \fB-R\fR must be specified. For each \fIsource_dir\fR, \fBcp\fR
  86   87  copies all files and subdirectories.
  87   88  .SH OPTIONS
  88   89  .sp
  89   90  .LP
  90   91  The following options are supported for both \fB/usr/bin/cp\fR and
  91   92  \fB/usr/xpg4/bin/cp\fR:
  92   93  .sp
  93   94  .ne 2
       95 +.na
       96 +\fB\fB-a\fR\fR
       97 +.ad
       98 +.RS 6n
       99 +Archive mode. Same as -RpP.
      100 +.RE
      101 +
      102 +.sp
      103 +.ne 2
  94  104  .na
  95  105  \fB\fB-f\fR\fR
  96  106  .ad
  97  107  .RS 6n
  98  108  Unlink. If a file descriptor for a destination file cannot be obtained, this
  99  109  option attempts to unlink the destination file and proceed.
 100  110  .RE
 101  111  
 102  112  .sp
 103  113  .ne 2
↓ open down ↓ 402 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX