Skip to content
zero2vibecodelearn vibe coding

What find -name does

Find every file matching a name pattern in this folder and the ones inside it.

find.-name*.txt
  • findcommand — find files
  • .argument: a file, a folder, or text
  • -nameflag (a command option)
  • *.txtargument: a file, a folder, or text

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