About 1,320 results
Open links in new tab
  1. Find all files containing a specific text (string) on Linux?

    Jun 6, 2013 · Use grep -ilR: grep -Ril "text-to-find-here" / i stands for ignore case (optional in your case). R stands for recursive. l stands for "show the file name, not the result itself". / stands for starting at the root of your machine.

  2. How to find a string or text in a file on Linux - LinuxConfig

    Jan 21, 2023 · In this tutorial, we’ll show you how to quickly and easily search through files for a specified text string. You’ll learn how to use the grep command to perform this task, as well as how to access the search function in command line and GUI text editors.

  3. How to Find all Files Containing Specific Text (string) on Linux

    Jul 31, 2023 · Well, there are some useful methods that will help you find a file containing a specific text (or string) in Linux. The string needs to be specified by the user. So, let’s take a look at the methods: grep command in Linux that is used to search for files containing a …

  4. search - How to list files which contain specific string using linux ...

    Jun 13, 2017 · Let say your string is in the environment variable STR and you search in directory dir/. You can do: find dir/ -type f -name "*${STR}*" If you search a file containing the string: find …

  5. How to Find Files with Specific Text on Linux - nixCraft

    Apr 28, 2024 · Finding a file containing a particular text string - Explains how to search for a word or string on Linux server using grep command line options.

  6. How to find all files containing specific text in Linux

    Apr 26, 2025 · In this guide, we will explore various methods to find all files containing specific text in Linux. We’ll cover simple command-line tools, discuss their options, and provide practical examples to enhance your searching capabilities.

  7. Find all files containing specific text - LinuxConfig

    Aug 19, 2020 · Without a doubt, grep is the best command to search a file (or files) for a specific text. By default, it returns all the lines of a file that contain a certain string. This behavior can be changed with the -l option, which instructs grep to only return the file names that contain the specified text. Now let’s see this in action.

  8. How to Find All Files Containing a Specific Text Pattern

    Mar 18, 2024 · Efficient text search is quintessential to working with files in Linux, especially when the number of files is large. In this tutorial, we’ll learn how to find all files containing a specific text pattern using Linux utilities like find, grep, and a few other alternatives.

  9. How to Find Files Containing a Specific Text (String) on Linux

    Apr 16, 2025 · There are multiple ways to look for a file containing a specific string on Linux. Today in this article, we will focus on the grep command, which easily helps to locate different types of files and perform simple pattern matching to look for our desired text (or string).

  10. How to Search and Find Files for Text Strings in Linux

    May 5, 2023 · Linux provides powerful command-line tools, such as grep and find, to assist you in searching and finding files based on specific text strings. These tools enable you to quickly locate files by their content and retrieve the information you need.

Refresh