mv.1

来自「unix v7是最后一个广泛发布的研究型UNIX版本」· 1 代码 · 共 70 行

1
70
字号
.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 + =
减小字号Ctrl + -
显示快捷键?