blob: 1c3309f393c86b2a73172178ee3e0e40d594715a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
.TH MV 1
.SH NAME
mv \- move files
.SH SYNOPSIS
.B mv
.I fromfile
.I tofile
.br
.B mv
.I fromfile ...
.I todir
.SH DESCRIPTION
.I Mv
moves
.I fromfile
to
.IR tofile .
If the files are in the same directory,
.I fromfile
is simply renamed;
a previously existing file named
.I tofile
will be (silently) removed.
Otherwise,
.I mv
copies
.I fromfile
to
.IR tofile ,
then removes
.IR fromfile .
This requires write permission for the parent directories involved.
.PP
If the last argument is a directory, the earlier arguments (all files) will be moved into that directory. Any previously existing files of the same name will be overwritten.
Directories can only be renamed:
.I mv
refuses to move one into another.
.SH SOURCE
.B /appl/cmd/mv.b
.SH "SEE ALSO"
.IR cp (1),
.IR rm (1),
.IR sys-stat (2)
|