LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mren

renames files and directories on MS-DOS filesystems

TLDR

Rename file on MS-DOS disk
$ mren [a:/oldname.txt] [a:/newname.txt]
copy
Rename directory
$ mren [a:/olddir] [a:/newdir]
copy
Verbose output
$ mren -v [a:/old] [a:/new]
copy

SYNOPSIS

mren [options] source target

DESCRIPTION

mren renames files and directories on MS-DOS filesystems. It's part of the mtools package.The tool works directly on FAT disks. Does not require mounting the filesystem.

PARAMETERS

SOURCE

Original MS-DOS file/directory name.
TARGET
New MS-DOS file/directory name.
-v
Verbose mode.
-D conflictoption
Specify what to do when a name collision occurs (autorename, overwrite, skip).
-o
Overwrite existing files without prompting.

CAVEATS

Part of mtools. MS-DOS naming conventions apply. 8.3 filename limits on older systems.

HISTORY

mren is part of mtools, the MS-DOS filesystem utilities collection for Unix systems.

SEE ALSO

mcopy(1), mmove(1), mdel(1)

Copied to clipboard
Kai