rename all files code example Example: rename all files in a folder command line for file in Picture*.jpg do mv "$file" "vacation-$file" done