rename.util
Rename multiple files. tldr-pages
On Linux
Linux
Rename multiple files. WARNING: This command will overwrite files without prompting unless the --no-act option is used. Note: This page refers to the command from the util-linux package.
Rename files using simple substitutions (substitute a string with a replacement wherever found)
rename string replacement *IdentifySimulate running the program without doing anything
rename --verbose --no-act string replacement *IdentifyDo not overwrite existing files
rename --no-overwrite string replacement *IdentifyChange file extensions
rename .ext .bak *.extIdentifyPrepend a prefix to all filenames in the current directory
rename '' 'prefix' *IdentifyRename a group of increasingly numbered files zero-padding the numbers up to 3 digits
rename prefix prefix00 prefix? && rename prefix prefix0 prefix??Identify