Hi Reader,

Sometimes , we get struck in trouble when we need to find any string or word from file and directories in linux server. Today we are trying to understand you how we can find any string or word in file or all directories. Before going into deep let’s have a look the below syntax.

Syntax 1:

$ grep -r “string” “/path/of/the/file”