The above example does tell you that the line you are searching for exists in the file you are searching - but no more. For our example you want to find out where this line is. To do this you would add the n argument which prints the line number the search string exists on. So our new command looks like:
grep -n MaxKeepAlive httpd.conf
and the results would look like:
80:# MaxKeepAliveRequests: The maximum number of requests to allow
84:MaxKeepAliveRequests 100
Now you know the entry exists AND you know the exact location(s) of the entry.
Let's say, however, you are unsure of the capitalization of MaxKeepAlive. You can use the i argument to ignore capitalization. So now issuing the command:
grep -ni maxkeepalive httpd.conf
would give you the same output:
80:# MaxKeepAliveRequests: The maximum number of requests to allow
84:MaxKeepAliveRequests 100