Linux command
mren 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Rename file on MS-DOS disk
mren [a:/oldname.txt] [a:/newname.txt]
Rename directory
mren [a:/olddir] [a:/newdir]
Verbose output
mren -v [a:/old] [a:/new]
说明
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.
参数
- -v
- Verbose mode.
- -D _conflictoption_
- Specify what to do when a name collision occurs (autorename, overwrite, skip).
- -o
- Overwrite existing files without prompting.
FAQ
What is the mren command used for?
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.
How do I run a basic mren example?
Run `mren [a:/oldname.txt] [a:/newname.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v do in mren?
Verbose mode.