1MV(1)                            User Commands                           MV(1)
2
3
4

NAME

6       mv - move (rename) files
7

SYNOPSIS

9       mv [OPTION]... [-T] SOURCE DEST
10       mv [OPTION]... SOURCE... DIRECTORY
11       mv [OPTION]... -t DIRECTORY SOURCE...
12

DESCRIPTION

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

AUTHOR

81       Written by Mike Parker, David MacKenzie, and Jim Meyering.
82

REPORTING BUGS

84       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
85       Report mv translation bugs to <https://translationproject.org/team/>
86
88       Copyright  ©  2018  Free Software Foundation, Inc.  License GPLv3+: GNU
89       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
90       This is free software: you are free  to  change  and  redistribute  it.
91       There is NO WARRANTY, to the extent permitted by law.
92

SEE ALSO

94       rename(2)
95
96       Full documentation at: <https://www.gnu.org/software/coreutils/mv>
97       or available locally via: info '(coreutils) mv invocation'
98
99
100
101GNU coreutils 8.30                 July 2018                             MV(1)
Impressum