This is HowTo Search and delete file with “find command” Pretty Handy !

find /home/work/salman/ -type f -name *.txt -exec rm -i {} \;

This command will find all of the files with extension txt such as file.txt and ask for its removal.

Thanks and Enjoy Linux Tip of the Day.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.