How do I search for a file containing a specific text in Linux?

Ánh Dương

New member
How do I search for a file containing a specific text in Linux?
Answer
To find files containing specific text in Linux, do the following.
  1. Open your favorite terminal app. XFCE4 terminal is my personal preference.
  2. Navigate (if required) to the folder in which you are going to search files with some specific text.
  3. Type the following command: grep -iRl “your-text-to-find” ./
4 сент. 2017 г.
 

Tìm kiếm

Back
Top