What find -name does
find . -name "*.txt": Find every file matching a name pattern in this folder and the ones inside it.
The find command page covers what it does in general, with an example.
find.-name*.txt
find— command — find files.— argument: a file, a folder, or text-name— flag — match files whose name fits the pattern (* means any characters)*.txt— the name pattern to look for
What it does when you run it
$ find . -name "*.txt"
./a.txt
./log.txt
./myfolder/keep.txt
./names.txt
./notes.txt
./old.txt
Run it yourself
The same files. Nothing here can break, and nothing leaves your browser.
Explain other commands
Written by Mikhail Kuzmitskii