๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Linux Beginner

What is Grep?

A command-line utility for searching plain-text data for lines matching a regular expression pattern.

Grep (Global Regular Expression Print) is one of the most used Linux commands. Basic usage: grep "pattern" file. Common flags include -i (case insensitive), -r (recursive), -n (line numbers), -v (invert match), and -c (count).

Extended grep (grep -E or egrep) supports advanced regex. Grep is essential for log analysis, code searching, and text processing. Modern alternatives include ripgrep (rg) which is significantly faster.

Related Terms

AppArmor
A Linux security module that restricts program capabilities using per-application profiles, simpler to configure than SELinux.
Procfs (/proc)
A virtual filesystem in Linux that provides an interface to kernel data structures, exposing process and system information as files.
Dmesg
A command that displays kernel ring buffer messages, useful for diagnosing hardware and driver issues.
LVM (Logical Volume Manager)
A storage management framework that provides flexible disk management through abstract layers of physical and logical volumes.
Bash Script
A text file containing a series of shell commands that are executed sequentially by the Bash interpreter.
Journalctl
A command-line tool for querying and viewing logs collected by systemd's journal logging system.
View All Linux Terms โ†’