How to add a prefix to the file using the rename?

There are files
image1.jpg
image2.jpg
image3.jpg
image4.jpg

you should get
s-image1.jpg
s-image2.jpg
s-image3.jpg
s-image4.jpg

If you use pyrenamer original name is contained in {1}, but rename this template is not working.

Need ispolzovatj rename it via terminal, as has repeatedly met this challenge.
Thanks in advance for your help.
June 10th 19 at 14:47
1 answer
June 10th 19 at 14:49
rename 's/image/s-image/' *.jpg
not working - Luigi_K commented on June 10th 19 at 14:52
and works for me. What do we do? - Adriel51 commented on June 10th 19 at 14:55
To find a universal solution)) - Luigi_K commented on June 10th 19 at 14:58
maybe we could start with the fact that you say that means your "not working"? It gives an error? Not handling files properly? Bring a test dataset on which you are not working, and I can verify his story. - Adriel51 commented on June 10th 19 at 15:01

Find more questions by tags Ubuntu