Goto the respective directory and type the below command find . -type f -name FILE_TYPE -exec mv -i {} DIRECTORY Explanation: -type f => for files -name => name of the file ( here we use wildcard *.EXTENSION ) -exec => execute command when any file is found example command: find /home -type f -name '*.mp3' -exec mv -i {} /somedir \;
Let's make world safe, use technology wise