🎁 New User? Get 20% off your first purchase with code NEWUSER20 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

ACL (Access Control List)
An extension to standard Linux file permissions that allows setting fine-grained access rights for specific users and groups beyond owner/group/other.
Inode
A data structure in Unix filesystems that stores metadata about a file, excluding its name and data.
RAID
Redundant Array of Independent Disks — a technology combining multiple physical drives into a single unit for performance, redundancy, or both.
Journald
The systemd journal daemon that collects and stores log data from services, the kernel, and boot messages in a structured binary format.
Mount Point
A directory in the filesystem where a storage device or partition is attached and made accessible.
Firewalld
A dynamic firewall management tool for Linux that provides a D-Bus interface for managing firewall rules with zones.
View All Linux Terms →