sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

cp.1 (1125B)


      1 .Dd 2015-10-08
      2 .Dt CP 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm cp
      6 .Nd copy files and directories
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl afpv
     10 .Oo
     11 .Fl R
     12 .Op Fl H | L | P
     13 .Oc
     14 .Ar source ...
     15 .Ar dest
     16 .Sh DESCRIPTION
     17 .Nm
     18 copies
     19 .Ar source
     20 to
     21 .Ar dest .
     22 If more than one
     23 .Ar source
     24 is given
     25 .Ar dest
     26 has to be a directory.
     27 .Sh OPTIONS
     28 .Bl -tag -width Ds
     29 .It Fl a
     30 Preserve block devices, character devices, sockets and FIFOs.
     31 Implies
     32 .Fl p ,
     33 .Fl P
     34 and
     35 .Fl R .
     36 .It Fl f
     37 If an existing
     38 .Ar dest
     39 cannot be opened, remove it and try again.
     40 .It Fl p
     41 Preserve mode, timestamp and permissions.
     42 .It Fl v
     43 Write "'source' -> 'dest'" for each
     44 .Ar source
     45 to stdout.
     46 .It Fl H
     47 Dereference
     48 .Ar source
     49 if it is a symbolic link.
     50 .It Fl L
     51 Dereference all symbolic links.
     52 This is the default without
     53 .Fl R .
     54 .It Fl P
     55 Preserve symbolic links.
     56 This is the default with
     57 .Fl R .
     58 .It Fl R
     59 Traverse directories recursively.
     60 If this flag is not specified, directories are not copied.
     61 .El
     62 .Sh SEE ALSO
     63 .Xr mv 1
     64 .Sh STANDARDS
     65 The
     66 .Nm
     67 utility is compliant with the
     68 .St -p1003.1-2013
     69 specification except from the
     70 .Op Fl i
     71 flag.
     72 .Pp
     73 The
     74 .Op Fl av
     75 flags are an extension to that specification.