mv.1
来自「操作系统设计与实现源码」· 1 代码 · 共 42 行
1
42 行
.TH MV 1.SH NAMEmv \- move or rename a file.SH SYNOPSIS\fBmv [\fB\-ifsmvx\fR] \fIfile1 file2\fR.br\fBmv [\fB\-ifsvx\fR] \fIfile\fR ... \fIdirectory\fR.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 \fIoldname\fP to \fInewname\fP".EX "mv file1 file2 /user/ast" "Move two files to \fI/user/ast\fP".SH DESCRIPTION.PP.I Mvmoves 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 renamingotherwise by copying. If you're not superuser, the copy will destroy thefile's owner, group and setuid/setgid bits..I mvwill prompt before removing non-writable files if \fBstdin\fR is a terminalor the \fB\-i\fR flag was specified..SH "SEE ALSO".BR cp (1),.BR rename (2).
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?