OS Manuals

/usr/bin/rename

Misc binaries for util-linux

From util-linux-misc 2.42.4-r2 (os), captured 2026-11-05 by running rename --help (exit 0). permalink

Usage:
 rename [options] <substring> <replacement> <file>...

Rename files.

Options:
 -v, --verbose       explain what is being done
 -s, --symlink       act on the target of symlinks
 -n, --no-act        do not make any changes
 -a, --all           replace all occurrences
 -l, --last          replace only the last occurrence
 -o, --no-overwrite  don't overwrite existing files
 -i, --interactive   prompt before overwrite

 -h, --help          display this help
 -V, --version       display version

For more details see rename(1).
Options (9)
OptionDescriptionSource
-v, --verboseShow which files were renamed, if any.help + man
-s, --symlinkDo not rename a symlink but change where it points.help + man
-n, --no-actDo not make any changes;help + man
-a, --allReplace all occurrences of substring rather than only the first one.help + man
-l, --lastReplace the last occurrence of substring rather than the first one.help + man
-o, --no-overwriteDo not overwrite existing files.help + man
-i, --interactiveAsk before overwriting existing files.help + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man
Exit status (5) from the manual page
0all requested rename operations were successful
1all rename operations failed
2some rename operations failed
4nothing was renamed
64unanticipated error occurred
Examples (3) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.