For whatever reason I wasn't able to quickly find something to batch rotate some images in Ubuntu, so, here is the command I ran in the folder that contained the images I wished to rotate after creating a folder named 'resized.' Not to worry about the program trying to rotate the folder, it will just error. This also requires ImageMagick to be installed

for i in `ls`; do convert $i -rotate 90 rotated/$i; done;