LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mmove

move or rename an MS-DOS file or subdirectory

TLDR

Move/rename a file on an MS-DOS disk
$ mmove a:oldname a:newname
copy
Move a file to a directory on the disk
$ mmove a:[file.txt] a:[dir]/
copy
Move multiple files matching a wildcard
$ mmove a:*.[txt] a:[backup]/
copy
Move a subdirectory
$ mmove a:[olddir] a:[newdir]
copy
Move with verbose output
$ mmove -v a:[file] a:[newfile]
copy

SYNOPSIS

mmove [-v] [-D clashoption] source [sources...] target_

DESCRIPTION

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.

PARAMETERS

SOURCE

Source file(s) or subdirectories on an MS-DOS filesystem. Drive letter prefix (e.g., a:) specifies the device.
TARGET
Target filename or directory.
-v
Verbose mode. Print the name of each file as it is moved.
-D clashoption_
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).

CAVEATS

Only works on FAT filesystems. Cannot move files between different drives. Drive mappings are configured in /etc/mtools.conf or ~/.mtoolsrc.

SEE ALSO

mcopy(1), mdel(1), mren(1), mmd(1)

Copied to clipboard
Kai