Mv

Give files in a directory random names
for f in *.jpg;do mv "$f" $RANDOM.jpg; done

Move all files starting with "B" into the b subdirectory
find -name "B*.*" -exec mv {} b \;

Move all the .jpg images from one folder to another folder, recursively
find /home/teresita/Desktop -type f -name *.jpg -exec mv '{}' /home/teresita/Downloads \;

Recursively move mp3 files in many directories to a single target directory
find -name '*.mp3' -exec mv -i {} /home/minix/Desktop/music \;

Rename in bulk
OLD=xxx NEW=yyy for F in $OLD* do SUFFIX=`expr $F : '$OLD\(.*\)'` mv $OLD$SUFFIX $NEW$SUFFIX done

Make directories based on file extensions and stuff the files into them
for filename in *; do  if  -f "$filename" ; then base=${filename%.*} ext=${filename#$base.} mkdir -p "${ext}" mv "$filename" "${ext}" fi done
 * 1) !/bin/bash