📄 mv.1
字号:
.\" SCCSID: @(#)mv.1 8.1 9/11/90.TH mv 1.SH Namemv \- move or rename files.SH Syntax.B mv[\fB\-i\fR] [\fB\-f\fR\|] [\fB\-\fR] \fIfile1 file2\fR.PP.B mv[\fB\-i\fR] [\fB\-f\fR\|] [\fB\-\fR] \fIfile... directory\fR.SH Description.NXR "mv command" .NXR "file" "moving".NXR "file" "renaming"The.PN mvcommandmoves (changes the name of).I file1to.IR file2 ..PPIf.I file2already exists, it is removed before.I file1is moved. If.I file2has a mode which forbids writing,.PN mvprints the mode and reads the standard input to obtain a line. If the line begins with.B y,the move takes place. If it does not,.PN mvexits.For further information, see .MS chmod 2 ..PPIn the second form, one or more.I files(plain files or directories) are moved to the.I directorywith their original file-names..PPThe.PN mvcommand refuses to move a file onto itself..SH Options.IP \fB\-\fR 20Interprets all following arguments as file names to allow file names starting witha minus. .IP \fB\-f\fR 20Force. This option overrides any mode restrictions or the\-i switch..IP \fB\-i\fR 20Interactive mode. If a move is to supersede anexisting file, the system prompts youw with the name of the filefollowed by a question mark. If you type a string that beginswith y, the move occurs. If you type any other response, the move doesnot occur..SH RestrictionsIf.I file1and.I file2lie on different file systems,.PN mvmust copy the file and delete the original.In this case the owner name becomes that of the copying process and anylinking relationship with other files is lost..SH See Alsocp(1), ln(1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -