- 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.