Menu

🌐 Linux Free Masterclass (Episode 10): Search & Text Extraction (find, grep, and locate)
πŸ“°

🌐 Linux Free Masterclass (Episode 10): Search & Text Extraction (find, grep, and locate)

DEV Community: cybersecurityΒ·Yashpal PatelΒ·8 days ago
#IRdfK3al
#devtocybersecurity#devto#dev#terminal#basiccommands
Reading 0:00
15s threshold

🌐 Linux Free Masterclass (Episode 10): Search & Text Extraction (find, grep, and locate)

How do you instantly track down specific files across a massive storage drive or scan through millions of lines of text to find a hidden keyword or password? Through powerful search and filtering commands.

Here are the key points from Episode 10:

πŸ”Ή 1. The find Command (Searching by Name, Size, or Attributes)

Purpose: Deep-scans your filesystem or specific directories to locate files based on precise criteria like name, modification time, or size.

Usage: Typing find / -name password.txt searches the entire system starting from the root directory (/) for a file matching that exact name.

πŸ”Ή 2. The locate Command (Instant Database Search)

Purpose: Provides ultra-fast file lookups by querying a pre-indexed system database (updatedb) rather than scanning the live disk in real-time.

Usage: Type locate config.txt for instant results without the delay of a deep disk scan.

πŸ”Ή 3.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.