Qirolab Qirolab
Posts Questions Snippets
Login Register

How to find files containing specific text in Linux?

Linux Linux Mint Ubuntu Ubuntu Server
Asked by Sumit Talwar · 4 years ago · 2 answers
Sohail
Sohail
4 years ago

You can use grep -ilR:

grep -Ril "text-to-find-here" /directory-path
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands for "show the file name, not the result itself".
0
0
More related questions:
  • How to change permissions for a folder and all its sub folders and files in one step in Linux/Ubuntu?
    2 0
  • How to Install and Configure Laravel framework with Nginx on Ubuntu?
    1 0
  • How to enable Ubuntu microphone noise cancellation and fix volume auto adjusted issue?
    1 0
  • How to check that if a directory exists in a Bash shell script?
    2 0
  • How to install mysql-server in the Ubuntu server using shell script without being asked any configuration questions?
    1 0
  • Home
  • Questions
  • Posts
  • Snippets
  • Tags
Popular Tags
JavaScript
JavaScript
Laravel
Laravel
PHP
PHP
React.js
React.js
Vue.js
Vue.js
HTML
HTML
WordPress
WordPress
Ubuntu
Ubuntu
CSS
CSS
CSS3
CSS3
Qirolab Qirolab

Qirolab is an open community for everyone who codes comes to learn, share their knowledge, collaborate, and build their careers.

Videos

  • Laravel Reverb + Nuxt 3: Real-Time Messaging | Full Chat App Tutorial
  • Nuxt 3 + Laravel Sanctum Authentication: Setup Secure SPA & API Auth (Step-by-Step Guide)
  • useEffect() Hook in React.js: Side Effects, Lifecycle and Prevent Memory Leaks (Tutorial #13)
  • Ctrl+Alt+Cheat: Tailwind Shade Generator, Linux Cheat Sheets & More! 🚀

Learn

  • Questions
  • Posts
  • Snippets
  • Tags

Extra

  • About
  • Privacy Policy
  • Terms of Service
© QiroLab 2025. All rights reserved.
We use cookies to ensure that we give you the best experience on our website.  See our Cookie Policy.