Skip to content
skillbld
Linux Command Line · 14-day planAll days
Day 5 of 14 30 min

Find files by name, type, size and age with find, and search inside files with grep. Learn grep's most useful options, simple regular expressions, searching whole folders, and how to locate programs with which.

By the end of today you can

  • Find files by name, type and size with find
  • Search inside files with grep, ignoring case and showing line numbers
  • Search whole folders with grep -r and list only matching files
  • Use simple regular expressions like ^, $ and .
  • Locate programs with which and type

What's inside

  • 4 sections
  • 2 diagrams and mind maps
  • 7 code examples you can run
  • 5-question quiz
  1. 1find: locate files
  2. 2grep: search inside files
  3. 3Patterns: regular expressions
  4. 4Where is that program? which and type

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free

Keep going

Day 5: Searching · Linux Command Line · SkillBld