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 · 2 years ago · 2 answers
Sohail
Sohail
2 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
Laravel
Laravel
JavaScript
JavaScript
PHP
PHP
HTML
HTML
CSS
CSS
Ubuntu
Ubuntu
WordPress
WordPress
Vue.js
Vue.js
CSS3
CSS3
HTML5
HTML5
Qirolab Qirolab

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

Videos

  • Part #3 - Rule Objects Custom Laravel Validation
  • Part #2: Validator::extend Custom Laravel Validation
  • Part #1: Closure-based Laravel Custom Validations
  • Difference between Classes and Enums in PHP 8.1

Learn

  • Questions
  • Posts
  • Snippets
  • Tags

Extra

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