To replace the ".jpeg" extension with ".jpg" in images files in a folder, you can use the "mv" command with the "for" loop.
for file in $(ls *.jpeg); do mv "$file" "${file%.*}.jpg" ; done