Preface: I am an absolute novice with Linux, please don't judge strictly.
I have a directory containing several images (over 100) of a .pnm extension. I wish to rename them in such a sense, that their names should be "img1.pnm", "img2.pnm", "img3.pnm", etc. So they should have a common part in their names––"img" and different indicies running from "1".
How can I do this?