手册页部分 1M: 系统管理命令

退出打印视图

更新时间: 2014 年 7 月
 
 

mvdir(1M)

名称

mvdir - move a directory

用法概要

/usr/sbin/mvdir dirname name

描述

mvdir moves directories within a file system. dirname must be a directory. If name does not exist, it will be created as a directory. If name does exist, and is a directory, dirname will be created as name/dirname. dirname and name may not be on the same path; that is, one may not be subordinate to the other. For example:

example% mvdir x/y x/z

is legal, but

example% mvdir x/y x/y/z

is not.

操作数

dirname

The name of the directory that is to be moved to another directory in the filesystem.

name

The name of the directory into which dirname is to be moved. If name does not exist, it will be created. It may not be on the same path as dirname.

用法

See largefile(5) for the description of the behavior of mvdir when encountering files greater than or equal to 2 Gbyte ( 231 bytes).

退出状态

0

Successful operation.

>0

Operation failed.

属性

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

另请参见

mkdir(1), mv(1), attributes( 5), largefile(5)