Skip to main content

Posts

Showing posts from October, 2017

Recursively Move Files in Linux

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 \;