In order to rename multiple files, such that a common string (string1) among those file names will be replaced by another string (string2),
e.g. testAA_0.txt, testAA_1.txt --> testBB_0.txt, testBB_1.txt
$ rename AA BB *.txt
(The third argument specifies the files to be renamed.)