Home / Labs / Searching a Whole Tree

Searching a Whole Tree

Quick answer: grep -r "text" . searches every file under the current folder. Add -l to list only the file names that match.

A whole tree of files, and you need three things from it. Search by extension, by content, and by link.

Open this lab

Commands practised here

Nearby labs