mmv
file managementLinux/Unix
The mmv command is one of the most frequently used commands in Linux/Unix-like operating systems. mmv Move/rename multiple files using patterns
Quick Reference
Command Name:
mmv
Category:
file management
Platform:
Linux/Unix
Basic Usage:
mmv [options] [arguments]
Common Use Cases
Syntax
mmv [options] from_pattern to_pattern
Options
| Option | Description |
|---|---|
-m |
Move mode (default) |
-c |
Copy mode (instead of moving files) |
-l |
Link mode (create symbolic links instead of moving) |
-s |
Symlink mode (create symbolic links instead of moving) |
-d |
Dirmode (act on directories instead of files) |
-h |
Handle multiple matches (with special syntax) |
-n |
No execute (show what would be done without making changes) |
-a |
Ask for confirmation for each action |
-p |
Protect existing target files (don't overwrite) |
-g |
Group undo (all operations succeed or all fail) |
-v |
Verbose (show extra information) |
-r |
Use regular expressions instead of wildcards |
Examples
How to Use These Examples
The examples below show common ways to use the mmv command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.