Bash: Prepend To Filename for f in *; do mv "$f" "prepend_$f"; done Whenever you need to prepend anything to your files.