<s>
In	O
computing	O
,	O
copy	O
is	O
a	O
command	B-Application
in	O
various	O
operating	B-General_Concept
systems	I-General_Concept
.	O
</s>
<s>
The	O
command	B-Application
copies	O
computer	O
files	O
from	O
one	O
directory	B-Application
to	O
another	O
.	O
</s>
<s>
Generally	O
,	O
the	O
command	B-Application
copies	O
files	O
from	O
one	O
location	O
to	O
another	O
.	O
</s>
<s>
The	O
destination	O
defaults	O
to	O
the	O
current	B-Application
working	I-Application
directory	I-Application
.	O
</s>
<s>
If	O
multiple	O
source	O
files	O
are	O
indicated	O
,	O
the	O
destination	O
must	O
be	O
a	O
directory	B-Application
,	O
or	O
an	O
error	O
will	O
result	O
.	O
</s>
<s>
The	O
command	B-Application
can	O
copy	O
in	O
text	O
mode	O
or	O
binary	O
mode	O
;	O
in	O
text	O
mode	O
,	O
copy	O
will	O
stop	O
when	O
it	O
reaches	O
the	O
EOF	B-Application
character	O
;	O
in	O
binary	O
mode	O
,	O
the	O
files	O
will	O
be	O
concatenated	O
in	O
their	O
entirety	O
,	O
ignoring	O
EOF	B-Application
characters	O
.	O
</s>
<s>
Devices	O
themselves	O
may	O
be	O
copied	O
to	O
a	O
destination	O
file	O
,	O
for	O
example	O
,	O
copy	B-Device
con	I-Device
file	O
takes	O
the	O
text	O
typed	O
into	O
the	O
console	O
and	O
puts	O
it	O
into	O
FILE	O
,	O
stopping	O
when	O
EOF	B-Application
(	O
Ctrl+Z	O
)	O
is	O
typed	O
.	O
</s>
<s>
The	O
command	B-Application
is	O
available	O
in	O
DEC	O
RT-11	B-Operating_System
,	O
OS/8	B-Operating_System
,	O
RSX-11	B-Application
,	O
Intel	O
ISIS-II	O
,	O
iRMX	B-Operating_System
86	I-Operating_System
,	O
DEC	O
TOPS-10	B-Operating_System
,	O
TOPS-20	B-Operating_System
,	O
OpenVMS	B-Operating_System
,	O
MetaComCo	B-Device
TRIPOS	B-Operating_System
,	O
Heath	O
Company	O
HDOS	B-Application
,	O
Zilog	O
Z80-RIO	B-Device
,	O
Microware	B-Operating_System
OS-9	B-Operating_System
,	O
DOS	B-Device
,	O
DR	B-Operating_System
FlexOS	I-Operating_System
,	O
IBM/Toshiba	O
4690	B-Language
OS	I-Language
,	O
TSL	O
PC-MOS	O
,	O
HP	B-Operating_System
MPE/iX	I-Operating_System
,	O
IBM	B-Application
OS/2	I-Application
,	O
Microsoft	B-Application
Windows	I-Application
,	O
Datalight	O
ROM-DOS	B-Operating_System
,	O
ReactOS	B-Application
,	O
SymbOS	O
and	O
DexOS	O
.	O
</s>
<s>
The	O
copy	O
command	B-Application
is	O
supported	O
by	O
Tim	O
Paterson	O
's	O
SCP	B-Operating_System
86-DOS	I-Operating_System
.	O
</s>
<s>
Under	O
IBM	O
PC	O
DOS/MS	O
-DOS	O
it	O
is	O
available	O
since	O
version	O
1	O
.	O
</s>
<s>
A	O
more	O
advanced	O
copy	O
command	B-Application
is	O
called	O
xcopy	O
.	O
</s>
<s>
The	O
equivalent	O
Unix	B-Application
command	B-Application
is	O
cp	B-Application
,	O
the	O
CP/M	B-Application
command	B-Application
is	O
PIP	B-Application
.	O
</s>
<s>
The	O
command	B-Application
is	O
analogous	O
to	O
the	O
Stratus	B-General_Concept
OpenVOS	I-General_Concept
copy_file	O
command	B-Application
.	O
</s>
<s>
Files	O
may	O
be	O
copied	O
to	O
device	B-Application
files	I-Application
(	O
e.g.	O
</s>
<s>
copy	O
letter.txt	O
con	O
would	O
output	O
to	O
stdout	O
,	O
like	O
the	O
type	B-Device
command	B-Application
.	O
</s>
<s>
Which	O
is	O
just	O
like	O
the	O
cat	B-Device
command	I-Device
)	O
.	O
</s>
<s>
There	O
are	O
two	O
command-line	O
switches	O
to	O
modify	O
the	O
behaviour	O
when	O
concatenating	O
files	O
:	O
</s>
<s>
Text	O
mode	O
-	O
This	O
copies	O
the	O
text	O
content	O
of	O
the	O
file	O
,	O
stopping	O
when	O
it	O
reaches	O
the	O
EOF	B-Application
character	O
.	O
</s>
<s>
Binary	O
mode	O
-	O
This	O
concatenates	O
files	O
in	O
their	O
entirety	O
,	O
ignoring	O
EOF	B-Application
characters	O
.	O
</s>
