l - show file names instead of file contents portions. R - recursively search files in subdirectories. Type the following command: grep -iRl "your-text-to-find".Navigate (if required) to the folder in which you are going to search files with some specific text.XFCE4 terminal is my personal preference. To find files containing specific text in Linux, do the following. The first method involves the grep utility, which exists in any distro, even in embedded systems built on busybox. I would like to share the methods I use myself. It comes with an option to search for file contents, but it does not work reliably for me. There's Catfish, a popular search tool with a search index, which can find your files really quickly. Probably, there are more methods available.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |