How to use grep command for file search in Linux OS

I want to search files in whole linux OS, but I don't know how to do it. I googled that grep command is used for searching files, but can anyone explain exact syntax of doing it with some basic examples for better understanding