rename extension of multiple files linux

I recently wanted to rename all my jpg files to png files in one folder on my ubuntu device. The fol­low­ing com­mand did the trick for me.

rename 's/.jpg$/.png/' *.jpg

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.

You may also like...