linux command find file with extension code example Example: linux command find file with extension find . -type f -name "*.txt"