annotate docs/nitros9guide/copy.refentry @ 1892:77d83b367eba

reduced labeltab size so os9boot would link
author robert
date Fri, 14 Oct 2005 01:56:25 +0000
parents b00cf13c9f61
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
1 <refentry id="copy">
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
2 <refnamediv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
3 <refname>COPY</refname>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
4 <refpurpose>Copy data from one path to another</refpurpose>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
5 </refnamediv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
6
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
7 <refsynopsisdiv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
8 <cmdsynopsis>
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1053
diff changeset
9 <command>copy</command>
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
10 <arg choice="plain">
975
c565a4700689 The entitity replstart was replaced with <replaceable>
roug
parents: 134
diff changeset
11 <replaceable>path</replaceable>
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
12 </arg>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
13 <arg choice="plain">
975
c565a4700689 The entitity replstart was replaced with <replaceable>
roug
parents: 134
diff changeset
14 <replaceable>path</replaceable>
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
15 </arg>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
16 <arg choice="opt">
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
17 <option>-a -p -r -s -w=&lt;dir&gt; -x</option>
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
18 </arg>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
19 </cmdsynopsis>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
20 </refsynopsisdiv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
21
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
22 <refsect1><title>Description</title>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
23 <para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
24 This command copies data from the first file or device specified to
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
25 the second. The first file or device must already exist, the
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
26 second file is automatically created if the second path is a file on
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
27 a mass storage device. Data may be of any type and is NOT modified
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
28 in any way as it is copied.
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
29 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
30 <para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
31 Data is transferred using large block reads and writes until end-of-file
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
32 occurs on the input path. Because block transfers are used,
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
33 normal output processing of data does not occur on character-oriented
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
34 devices such as terminals, printers, etc. Therefore, the
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1013
diff changeset
35 <command>list</command> command is preferred over <command>copy</command> when a file consisting of text
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
36 is to be sent to a terminal or printer.
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
37 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
38 <para>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
39 The &quot;-a&quot; option will force <command>copy</command> to abort its operation if it receives an error during the copy of a file. If this option is not specified, copy will continue to attempt to copy any other files specified on its command line.
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
40 </para>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
41 <para>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
42 The &quot;-p&quot; option prevents copy from echoing the filenames that it is copying (used in conjunction with -w).
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
43 </para>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
44 <para>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
45 The &quot;-r&quot; option allows copy to rewrite the destination file if it matches the name of a source file that is being copied. If this option is not used, then the user will be prompted to overwrite a file of the same name.
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
46 </para>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
47 <para>
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1013
diff changeset
48 The &quot;-s&quot; option causes <command>copy</command> to perform a single drive copy
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
49 operation. The second pathlist must be a full pathlist if &quot;-s
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1013
diff changeset
50 appears. <command>Copy</command> will read a portion of the source disk into memory,
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
51 you remove the source disk and place the destination disk into the
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1013
diff changeset
52 drive, enter a &quot;C&quot; whereupon <command>copy</command> writes on the destination disk,
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
53 this process continues until the entire file is copied.
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
54 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
55 <para>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
56 The &quot;-w=&lt;dir&gt;&quot; option allows you to specify a destination directory where all the files will be copied to. Use this option when specifing multiple filenames on the command line.
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
57 </para>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
58 <para>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
59 The &quot;-x=&lt;dir&gt;&quot; will cause the files to be copied to an execution-relative directory.
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
60 </para>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
61 <para>
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
62 Using the shell's alternate memory size modifier to give a large
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
63 memory space will increase speed and reduce the number of media
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
64 exchanges required for single drive copies.
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
65 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
66 </refsect1>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
67 <refsect1><title>Examples</title>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
68 <screen>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
69 copy file1 file2 #15k (copies file1 to file2)
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
70
1013
15a1a20b70ab More changes
boisy
parents: 975
diff changeset
71 copy /d1/joe/news /D0/peter/messages
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
72
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
73 copy /d1/joe/news /d1/joe/weather -w=/D0/peter (where /D0/peter is a directory)
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
74
1013
15a1a20b70ab More changes
boisy
parents: 975
diff changeset
75 copy /term /p (copies console to printer)
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
76
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
77 copy /d0/cat /d0/animals/cat -s #32k
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
78 Ready DESTINATION, hit C to continue: c
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
79 Ready SOURCE, hit C to continue: c
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
80 Ready DESTINATION, hit C to continue:c
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
81 </screen>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
82 </refsect1>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
83 </refentry>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
84