← 返回命令列表

Linux command

mmove 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Move/rename a file on an MS-DOS disk

mmove a:oldname a:newname

Move a file to a directory on the disk

mmove a:[file.txt] a:[dir]/

Move multiple files matching a wildcard

mmove a:*.[txt] a:[backup]/

Move a subdirectory

mmove a:[olddir] a:[newdir]

Move with verbose output

mmove -v a:[file] a:[newfile]

说明

mmove moves or renames files and subdirectories on MS-DOS (FAT) filesystems without needing to mount them first. Unlike the MS-DOS MOVE command, mmove can also move subdirectories. It is part of the mtools package, which provides a set of utilities to access FAT filesystems from Unix. Source and target must be on the same MS-DOS filesystem. Cross-device moves are not supported -- use mcopy and mdel instead.

参数

-v
Verbose mode. Print the name of each file as it is moved.
-D _clash_option_
Specify what to do on filename conflicts. Lowercase is for the primary (long) name, uppercase for the secondary (short) name: o/O (overwrite), r/R (rename), s/S (skip), a/A (autorename).

FAQ

What is the mmove command used for?

mmove moves or renames files and subdirectories on MS-DOS (FAT) filesystems without needing to mount them first. Unlike the MS-DOS MOVE command, mmove can also move subdirectories. It is part of the mtools package, which provides a set of utilities to access FAT filesystems from Unix. Source and target must be on the same MS-DOS filesystem. Cross-device moves are not supported -- use mcopy and mdel instead.

How do I run a basic mmove example?

Run `mmove a:oldname a:newname` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v do in mmove?

Verbose mode. Print the name of each file as it is moved.