1MV(1) User Commands MV(1)
2
3
4
6 mv - move (rename) files
7
9 mv [OPTION]... [-T] SOURCE DEST
10 mv [OPTION]... SOURCE... DIRECTORY
11 mv [OPTION]... -t DIRECTORY SOURCE...
12
14 Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
15
16 Mandatory arguments to long options are mandatory for short options
17 too.
18
19 --backup[=CONTROL]
20 make a backup of each existing destination file
21
22 -b like --backup but does not accept an argument
23
24 -f, --force
25 do not prompt before overwriting
26
27 -i, --interactive
28 prompt before overwrite
29
30 -n, --no-clobber
31 do not overwrite an existing file
32
33 If you specify more than one of -i, -f, -n, only the final one takes
34 effect.
35
36 --strip-trailing-slashes
37 remove any trailing slashes from each SOURCE argument
38
39 -S, --suffix=SUFFIX
40 override the usual backup suffix
41
42 -t, --target-directory=DIRECTORY
43 move all SOURCE arguments into DIRECTORY
44
45 -T, --no-target-directory
46 treat DEST as a normal file
47
48 -u, --update
49 move only when the SOURCE file is newer than the destination
50 file or when the destination file is missing
51
52 -v, --verbose
53 explain what is being done
54
55 -Z, --context
56 set SELinux security context of destination file to default type
57
58 --help display this help and exit
59
60 --version
61 output version information and exit
62
63 The backup suffix is '~', unless set with --suffix or SIM‐
64 PLE_BACKUP_SUFFIX. The version control method may be selected via the
65 --backup option or through the VERSION_CONTROL environment variable.
66 Here are the values:
67
68 none, off
69 never make backups (even if --backup is given)
70
71 numbered, t
72 make numbered backups
73
74 existing, nil
75 numbered if numbered backups exist, simple otherwise
76
77 simple, never
78 always make simple backups
79
80 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
81 Report mv translation bugs to <http://translationproject.org/team/>
82
84 Written by Mike Parker, David MacKenzie, and Jim Meyering.
85
87 Copyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU
88 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
89 This is free software: you are free to change and redistribute it.
90 There is NO WARRANTY, to the extent permitted by law.
91
93 rename(2)
94
95 The full documentation for mv is maintained as a Texinfo manual. If
96 the info and mv programs are properly installed at your site, the com‐
97 mand
98
99 info coreutils 'mv invocation'
100
101 should give you access to the complete manual.
102
103
104
105GNU coreutils 8.22 October 2018 MV(1)