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

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

    • About Baeldung

      About Baeldung.

Category upFiles

File Searching » find

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 (28)
  • x find (22)
  • awk (11)
  • sed (8)
  • xargs (5)
  • ls (5)
  • cut (3)
  • sort (3)
  • file (3)
  • regex (3)
  • wc (2)
  • tr (2)
  • Globbing (2)
  • copy-edit (2)

>> How to Sort the Files in a Directory Recursively Based on the Last Modified Date

>> Find Binary Files in a Directory

>> How to Auto Delete Files Older Than N Days

>> How to Find Files with Non-Printable and Non-ASCII Characters in Their Names

>> Using find to Get the Number of Occurrences of Text Patterns and Files

>> Finding Duplicate Files With the Same Name

>> How to List Files Not Matching a Given String in the Filename

>> How to Find Files by the Length of the Filename

>> Breadth-First Search in a Directory

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

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

>> How to grep Hidden Files and Directories

>> Linux Find Command With Regular Expressions

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

>> 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

>> 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

>> Using the find -exec Command Option

  • ↑ 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
  • Editors
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo