append a string in all files name linux

Shell
rename 's/^/1_/' *

where ^ is for starting of the file or end

Source

Also in Shell: