cp.1 (1077B)
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. Implies 31 .Fl p , 32 .Fl P 33 and 34 .Fl R . 35 .It Fl f 36 If an existing 37 .Ar dest 38 cannot be opened, remove it and try again. 39 .It Fl p 40 Preserve mode, timestamp and permissions. 41 .It Fl v 42 Write "'source' -> 'dest'" for each 43 .Ar source 44 to stdout. 45 .It Fl H 46 Dereference 47 .Ar source 48 if it is a symbolic link. 49 .It Fl L 50 Dereference all symbolic links. 51 This is the default. 52 .It Fl P 53 Preserve symbolic links. 54 .It Fl R 55 Traverse directories recursively. If this flag is not specified, directories 56 are not copied. 57 .El 58 .Sh SEE ALSO 59 .Xr mv 1 60 .Sh STANDARDS 61 The 62 .Nm 63 utility is compliant with the 64 .St -p1003.1-2013 65 specification except from the 66 .Op Fl i 67 flag. 68 .Pp 69 The 70 .Op Fl av 71 flags are an extension to that specification.