find file type in terminal

find . -type f -name "*.txt"

Tags: