Posts

Showing posts from October, 2017

Linux - search all extension available in a folder(recursively)

To search all extension available in a folder(recursively) Navigate to the target directory cd target/directory find $directory -type f -name "*.docx" Note: find command works recursively by default

Linux - How to delete all files recursively for sub-folders with out deleting the folder/sub-folder

To List all the files recursively form the patent folder and sub-folder, cd /target/directory find . -type f To Delete all the files recursively form the patent folder and sub-folder, cd /target/directory find . -type f -delete To Delete all the sub-folders & files recursively form the patent folder, cd /target/directory find . -type rf -delete