terminal.cab
No.
23
Date
Learning goal
Terminal Start, lesson 10
Level
2 of 3

Command of the day No. 23: find -name

Purpose: Finds files by name in every subfolder.

Syntax: find folder -name 'pattern'

Example:

find . -name '*.log'
./logs/app.log
./logs/old.log

Output from the simulator, as on a real Linux.

Options:

sudo: find / searches the whole system; without sudo many folders say Permission denied. 2>/dev/null hides that.

Try it in the terminal Share image

Fills in the command. Nothing runs until you press Enter.

Command of the day No. 23: find -name. Purpose: Finds files by name in every subfolder. Example: find . -name '*.log'. Remember: Quote the pattern, or the shell expands it first.
The same card as an image, 1080 x 1350 pixels.

Today's card ยท All cards so far