MV.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH MV 1
- .SH NAME
- mv - move or rename a file
- .SH SYNOPSIS
- fBmv [fB-ifsmvxfR] fIfile1 file2fR
- .br
- fBmv [fB-ifsvxfR] fIfilefR ... fIdirectoryfR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-i" "Prompt before removing existing files"
- .FL "-f" "Do not prompt before removing existing files"
- .FL "-s" "Do not clear any mode bits if owner can't be set"
- .FL "-m" "Merge directory trees"
- .FL "-v" "Tell what mv is doing"
- .FL "-x" "Do not cross device boundaries"
- .SH EXAMPLES
- .EX "mv oldname newname" "Move fIoldnamefP to fInewnamefP"
- .EX "mv file1 file2 /user/ast" "Move two files to fI/user/astfP"
- .SH DESCRIPTION
- .PP
- .I Mv
- moves one or more files from one place in the file system to another.
- If the old path and new path are on the same device, it is done by renaming
- otherwise by copying. If you're not superuser, the copy will destroy the
- file's owner, group and setuid/setgid bits.
- .I mv
- will prompt before removing non-writable files if fBstdinfR is a terminal
- or the fB-ifR flag was specified.
- .SH "SEE ALSO"
- .BR cp (1),
- .BR rename (2).