The Baeldung logo
  • The Baeldung LogoLinux Sublogo
  • Start Here
  • Write for Baeldung
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

Category upFiles

File Searching

Searching for files and searching within files for particular content is a common task of any user on the system. Learn about some of the basic commands to achieve this using various scenarios and examples.

  • grep (17)
  • find (14)
  • awk (8)
  • sed (5)
  • xargs (3)
  • file (2)
  • ls (2)
  • copy-edit (2)

>> Breadth-First Search in a Directory

>> How to Find All Files Containing a Specific Text Pattern

>> How to grep Without Leading Whitespaces

>> Navigating in a File in Vim

>> Why Looping Over find’s Output Is a Bad Practice

>> Count Occurrences of Character per Line/Field on Linux

>> Using grep While Excluding Binary Files

>> How to grep Hidden Files and Directories

>> Find Matching Text and Replace the Next Line

>> Difference Between awk, nawk, gawk and mawk

>> Why Is \d Not Supported by grep’s Regex

>> Search Contents of Multiple PDF Files

>> grep in a tar.gz Archive

>> Search for a Multi-Line Pattern in a File in Linux

>> Linux Find Command With Regular Expressions

>> How to Check if a File Type Exists in a Directory

>> Get Unique Values from an Array in Bash

>> Exclude Certain Paths With the find Command

>> How To Find Only Text Files in a Directory in Linux

>> Count All The Lines of Code in Directory

>> Escape Double Quote In Grep

>> Count Occurrences of a Char in a Text File in Linux

>> How To Compare Two Directories on Linux

>> Exclude Directories With grep

>> List the Size of Each File and Directory, and Sort by Size in Linux

>> Find and Delete Files and Directories

>> Using grep on Files That Match Specific Criteria

>> Find Files Not Owned by a Specific User in Linux

>> Introduction to Bash Globbing

>> Evaluate XPath in the Linux Command Line

>> Filtering Files Copied When Using rsync

>> Using the find -exec Command Option

>> Search Within Specific File Types Using grep

>> Delete Lines in a Text File That Contain a Specific String

>> Common Linux Text Search

  • ↑ Back to Top
The Baeldung logo

Categories

  • Administration
  • Files
  • Filesystems
  • Installation
  • Networking
  • Processes
  • Scripting
  • Search
  • Security
  • Web

Series

  • Linux Administration
  • Linux Files
  • Linux Processes

About

  • About Baeldung
  • The Full Archive
  • Write for Baeldung
  • Editors
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo