StudyToCert

All certifications / RHCSA / Lessons

Red Hat Certified System Administrator EX200 (RHEL 10) · Domain 1: Understand and use essential tools

Grep and regular expressions: ^, $, ., *, [ ], -i, -v, -r, -E

▶ Watch the overview video

Last reviewed September 25, 2026 · Leer en español

grep prints the lines of its input that match a pattern. On the RHCSA you use it constantly: to find a setting in a configuration file, to pick lines out of a log, or to satisfy a task such as 'save every line of /usr/share/dict/words containing the string ich into /root/lines'. The pattern is a regular expression (regex), a small language for describing text.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 5 more sections, 5 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study RHCSA for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the RHCSA study plan