teach manpages about largefile's demise
[unleashed.git] / share / man / man8 / mvdir.8
blobd3986c66290892221233323bc7e56090b2ff20fb
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1997, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MVDIR 8 "Mar 14, 1997"
7 .SH NAME
8 mvdir \- move a directory
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/sbin/mvdir\fR \fIdirname\fR \fIname\fR
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 \fBmvdir\fR moves directories within a file system. \fBdirname\fR must be a
19 directory. If \fIname\fR does not exist, it will be created as a directory. If
20 \fIname\fR does exist, and is a directory, \fBdirname\fR will be created as
21 \fIname/dirname\fR. \fBdirname\fR and  \fIname\fR may not be on the same path;
22 that is, one may not be subordinate to the other. For example:
23 .sp
24 .LP
25 \fBexample%\fR \fBmvdir\fR \fBx/y\fR \fBx/z\fR
26 .sp
27 .LP
28 is legal, but
29 .sp
30 .LP
31 \fBexample%\fR \fBmvdir\fR \fBx/y\fR \fBx/y/z\fR
32 .sp
33 .LP
34 is not.
35 .SH OPERANDS
36 .sp
37 .ne 2
38 .na
39 \fB\fBdirname\fR\fR
40 .ad
41 .RS 11n
42 The name of the directory that is to be moved to another directory in the
43 filesystem.
44 .RE
46 .sp
47 .ne 2
48 .na
49 \fB\fIname\fR\fR
50 .ad
51 .RS 11n
52 The name of the directory into which \fBdirname\fR is to be moved. If
53 \fIname\fR does not exist, it will be created. It may not be on the same path
54 as \fBdirname\fR.
55 .RE
57 .SH EXIT STATUS
58 .sp
59 .ne 2
60 .na
61 \fB\fB0\fR\fR
62 .ad
63 .RS 6n
64 Successful operation.
65 .RE
67 .sp
68 .ne 2
69 .na
70 \fB\fB>0\fR\fR
71 .ad
72 .RS 6n
73 Operation failed.
74 .RE
76 .SH SEE ALSO
77 .sp
78 .LP
79 \fBmkdir\fR(1), \fBmv\fR(1), \fBattributes\fR(5)