mv.1

来自「莱昂氏UNIX源代码分析UNIXv6src.tar.gz」· 1 代码 · 共 55 行

1
55
字号
.th MV I 8/20/73.sh NAMEmv  \*-  move or rename a file.sh SYNOPSIS.bd mvname1 name2.sh DESCRIPTION.it Mvchanges the name of.it name1to.it name2.If.it name2is a directory,.it name1is moved tothat directory with its original file-name.Directories may only be moved within the same parentdirectory (just renamed)..s3If.it name2already exists,it is removed before.it name1is renamed.If.it name2has a mode which forbids writing,.it mvprints the mode andreads the standard input to obtain a line;if the line begins with.bd y,the move takes place;if not,.it mvexits..s3If.it name2would lie on a different file system,so that a simple rename is impossible,.it mvcopies the fileand deletes the original..sh BUGSIt should take a.bd "\*-f"flag, like.it rm,to suppress the questionif the target exists and is not writable.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?