file search and delete in ubuntu command line

Search file using name

find -name "*.php" -printf "%s %p\n"

find -name “*.php” -printf “%s %p\n” -delete

Search file using name and count number of file

find -name “index.php” -printf “%s %p\n” | wc -l


Discover more from Soa Technology | Aditya Website Development Designing Company

Subscribe to get the latest posts sent to your email.



Leave a Reply

Discover more from Soa Technology | Aditya Website Development Designing Company

Subscribe now to keep reading and get access to the full archive.

Continue reading