Debian Codegraph @

upstream/debian-unstable/man1/mcopy.1

raw
1 '\" t
2 .TH mcopy 1 "14Jun25" mtools-4.0.49
3 .SH Name
4 mcopy - copy MSDOS files to/from Unix
5 '\" t
6 .de TQ
7 .br
8 .ns
9 .TP \\$1
10 ..
11
12 .tr \(is'
13 .tr \(if`
14 .tr \(pd"
15
16 .SH Note\ of\ warning
17 This manpage has been automatically generated from mtools's texinfo
18 documentation, and may not be entirely accurate or complete. See the
19 end of this man page for details.
20 .PP
21 .SH Description
22 .PP
23 The \fR\&\f(CWmcopy\fR command is used to copy MS-DOS files to and from
24 Unix. It uses the following syntax:
25 .PP
26
27 .nf
28 .ft 3
29 .in +0.3i
30 \&\fR\&\f(CWmcopy [\fR\&\f(CW-bspanvmQT] [\fR\&\f(CW-D \fIclash_option\fR\&\f(CW] \fIsourcefile\fR\&\f(CW \fItargetfile\fR\&\f(CW
31 \&\fR\&\f(CWmcopy [\fR\&\f(CW-bspanvmQT] [\fR\&\f(CW-D \fIclash_option\fR\&\f(CW] \fIsourcefile\fR\&\f(CW [ \fIsourcefiles\fR\&\f(CW\&... ] \fItargetdirectory\fR\&\f(CW
32 \&\fR\&\f(CWmcopy [\fR\&\f(CW-tnvm] \fIMSDOSsourcefile\fR\&\f(CW
33 .fi
34 .in -0.3i
35 .ft R
36 .PP
37
38 \&\fR
39 .PP
40 \&\fR\&\f(CWMcopy\fR copies the specified file to the named file, or copies
41 multiple files to the named directory. The source and target can be
42 either MS-DOS or Unix files.
43 .PP
44 The use of a drive letter designation on the MS-DOS files, 'a:' for
45 example, determines the direction of the transfer. A missing drive
46 designation implies a Unix file whose path starts in the current
47 directory. If a source drive letter is specified with no attached file
48 name (e.g. \fR\&\f(CWmcopy a: .\fR), all files are copied from that drive.
49 .PP
50 If only a single, MS-DOS source parameter is provided (e.g. "mcopy
51 a:foo.exe"), an implied destination of the current directory
52 (`\fR\&\f(CW.\fR') is assumed.
53 .PP
54 A filename of `\fR\&\f(CW-\fR' means standard input or standard output, depending
55 on its position on the command line.
56 .PP
57 \&\fR\&\f(CWMcopy\fR accepts the following command line options:
58 .TP
59 \&\fR\&\f(CWt\fR\
60 Text file transfer. Mcopy translates incoming carriage return/line
61 feeds to line feeds when copying from MS-DOS to Unix, and vice-versa when
62 copying from Unix to MS-DOS. Moreover copying stops at Control-Z
63 characters when copying from MS-DOS to Unix, and Control-Z is added at
64 end when copying from Unix to MS-DOS.
65 .TP
66 \&\fR\&\f(CWb\fR\
67 Batch mode. Optimized for huge recursive copies, but less secure if a
68 crash happens during the copy.
69 .TP
70 \&\fR\&\f(CWs\fR\
71 Recursive copy. Also copies directories and their contents
72 .TP
73 \&\fR\&\f(CWp\fR\
74 Preserves the attributes of the copied files
75 .TP
76 \&\fR\&\f(CWQ\fR\
77 When mcopying multiple files, quits as soon as one copy fails (for
78 example due to lacking storage space on the target disk)
79 .TP
80 \&\fR\&\f(CWa\fR\
81 Text (ASCII) file transfer. Same as t above.
82 .TP
83 \&\fR\&\f(CWT\fR\
84 Text (ASCII) file transfer with character set conversion. Differs from
85 \&\fR\&\f(CW-a\fR in the \fR\&\f(CWASCII\fR also translates incoming PC-8 characters
86 to ISO-8859-1 equivalents as far as possible. When reading DOS files,
87 untranslatable characters are replaced by '\fR\&\f(CW#\fR'; when writing DOS files,
88 untranslatable characters are replaced by '\fR\&\f(CW.\fR'.
89 .TP
90 \&\fR\&\f(CWn\fR\
91 No confirmation when overwriting Unix files. \fR\&\f(CWASCII\fR doesn't
92 warn the user when overwriting an existing Unix file. If the target
93 file already exists, and the \fR\&\f(CW-n\fR option is not in effect,
94 \&\fR\&\f(CWmcopy\fR asks whether to overwrite the file or to rename the new
95 file (see \(ifname clashes\(is for details). In order to switch off
96 confirmation for DOS files, use \fR\&\f(CW-o\fR.
97 .TP
98 \&\fR\&\f(CWm\fR\
99 Preserve the file modification time.
100 .TP
101 \&\fR\&\f(CWv\fR\
102 Verbose. Displays the name of each file as it is copied.
103 .PP
104 .SH Bugs
105 Unlike MS-DOS, the '+' operator (append) from MS-DOS is not
106 supported. However, you may use \fR\&\f(CWmtype\fR to produce the same effect:
107
108 .nf
109 .ft 3
110 .in +0.3i
111 mtype a:file1 a:file2 a:file3 >unixfile
112 mtype a:file1 a:file2 a:file3 | mcopy - a:msdosfile
113 .fi
114 .in -0.3i
115 .ft R
116 .PP
117
118 \&\fR
119 .PP
120 .SH See\ Also
121 Mtools' texinfo doc
122 .SH Viewing\ the\ texi\ doc
123 This manpage has been automatically generated from mtools's texinfo
124 documentation. However, this process is only approximative, and some
125 items, such as crossreferences, footnotes and indices are lost in this
126 translation process. Indeed, these items have no appropriate
127 representation in the manpage format. Moreover, not all information has
128 been translated into the manpage version. Thus I strongly advise you to
129 use the original texinfo doc. See the end of this manpage for
130 instructions how to view the texinfo doc.
131 .TP
132 * \ \
133 To generate a printable copy from the texinfo doc, run the following
134 commands:
135
136 .nf
137 .ft 3
138 .in +0.3i
139 ./configure; make dvi; dvips mtools.dvi
140 .fi
141 .in -0.3i
142 .ft R
143 .PP
144
145 \&\fR
146 .TP
147 * \ \
148 To generate a html copy, run:
149
150 .nf
151 .ft 3
152 .in +0.3i
153 ./configure; make html
154 .fi
155 .in -0.3i
156 .ft R
157 .PP
158
159 \&\fRA premade html can be found at
160 \&\fR\&\f(CW\(ifhttp://www.gnu.org/software/mtools/manual/mtools.html\(is\fR
161 .TP
162 * \ \
163 To generate an info copy (browsable using emacs' info mode), run:
164
165 .nf
166 .ft 3
167 .in +0.3i
168 ./configure; make info
169 .fi
170 .in -0.3i
171 .ft R
172 .PP
173
174 \&\fR
175 .PP
176 The texinfo doc looks most pretty when printed or as html. Indeed, in
177 the info version certain examples are difficult to read due to the
178 quoting conventions used in info.
179 .PP