Find files containing “some text” in Linux

Use the following commands to find files that contain specific text

grep “text to search for” directory-path

grep "config" /home

-r will search recursively

grep -r  "config" /etc
Print Friendly, PDF & Email

More Like This


Categories


Linux

Tags


  • Post a comment