📄 mv.1
字号:
.TH MV 1 .SH NAMEmv \- move or rename files and directories.SH SYNOPSIS.B mvfile1 file2.PP.B mvfile ... directory.SH DESCRIPTION.I Mvmoves (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,.I mvprints the mode (see.IR chmod (2))andreads the standard input to obtain a line;if the line begins with.B y,the move takes place;if not,.I mvexits..PPIn the second form,one or more.I filesare moved to the.I directorywith their originalfile-names..PP.I Mvrefuses to move a file onto itself..SH "SEE ALSO"cp(1), chmod(2).SH BUGSIf.I file1and.I file2lie on different file systems,.I mvmust copy the file and delete the original.In this case the owner name becomesthat of the copying process and anylinking relationship with other filesis lost..PP.I Mvshould take.B \-fflag, like.I rm,to suppress the questionif the target exists and is not writable.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -