Imported upstream version 1.5
[manpages-zh.git] / raw / man1 / mv.1
blobdcebc474f7df89e984bacc895de8c0328aad77e8
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.022.
2 .TH MV "1" "October 2003" "mv (coreutils) 5.0" FSF
3 .SH NAME
4 mv \- move (rename) files
5 .SH SYNOPSIS
6 .B mv
7 [\fIOPTION\fR]... \fISOURCE DEST\fR
8 .br
9 .B mv
10 [\fIOPTION\fR]... \fISOURCE\fR... \fIDIRECTORY\fR
11 .br
12 .B mv
13 [\fIOPTION\fR]... \fI--target-directory=DIRECTORY SOURCE\fR...
14 .SH DESCRIPTION
15 .\" Add any additional description here
16 .PP
17 Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
18 .PP
19 Mandatory arguments to long options are mandatory for short options too.
20 .TP
21 \fB\-\-backup\fR[=\fICONTROL\fR]
22 make a backup of each existing destination file
23 .TP
24 \fB\-b\fR
25 like \fB\-\-backup\fR but does not accept an argument
26 .TP
27 \fB\-f\fR, \fB\-\-force\fR
28 do not prompt before overwriting
29 equivalent to \fB\-\-reply\fR=\fIyes\fR
30 .TP
31 \fB\-i\fR, \fB\-\-interactive\fR
32 prompt before overwrite
33 equivalent to \fB\-\-reply\fR=\fIquery\fR
34 .TP
35 \fB\-\-reply=\fR{yes,no,query}
36 specify how to handle the prompt about an
37 existing destination file
38 .TP
39 \fB\-\-strip\-trailing\-slashes\fR remove any trailing slashes from each SOURCE
40 argument
41 .TP
42 \fB\-S\fR, \fB\-\-suffix\fR=\fISUFFIX\fR
43 override the usual backup suffix
44 .TP
45 \fB\-\-target\-directory\fR=\fIDIRECTORY\fR
46 move all SOURCE arguments into DIRECTORY
47 .TP
48 \fB\-u\fR, \fB\-\-update\fR
49 move only when the SOURCE file is newer
50 than the destination file or when the
51 destination file is missing
52 .TP
53 \fB\-v\fR, \fB\-\-verbose\fR
54 explain what is being done
55 .TP
56 \fB\-\-help\fR
57 display this help and exit
58 .TP
59 \fB\-\-version\fR
60 output version information and exit
61 .PP
62 The backup suffix is `~', unless set with \fB\-\-suffix\fR or SIMPLE_BACKUP_SUFFIX.
63 The version control method may be selected via the \fB\-\-backup\fR option or through
64 the VERSION_CONTROL environment variable.  Here are the values:
65 .TP
66 none, off
67 never make backups (even if \fB\-\-backup\fR is given)
68 .TP
69 numbered, t
70 make numbered backups
71 .TP
72 existing, nil
73 numbered if numbered backups exist, simple otherwise
74 .TP
75 simple, never
76 always make simple backups
77 .SH AUTHOR
78 Written by Mike Parker, David MacKenzie, and Jim Meyering.
79 .SH "REPORTING BUGS"
80 Report bugs to <bug-coreutils@gnu.org>.
81 .SH COPYRIGHT
82 Copyright \(co 2003 Free Software Foundation, Inc.
83 .br
84 This is free software; see the source for copying conditions.  There is NO
85 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
86 .SH "SEE ALSO"
87 The full documentation for
88 .B mv
89 is maintained as a Texinfo manual.  If the
90 .B info
91 and
92 .B mv
93 programs are properly installed at your site, the command
94 .IP
95 .B info mv
96 .PP
97 should give you access to the complete manual.