Grep is basically a search command.
It has many different uses, below are the ones I'm aware of;
Code:
grep -i *whatever your searching for *
This will search all files in the directory you are currently in for "whatever your searching for" Making sure the * are kept in place.
Code:
/usr/ucb/ps -auxwwww | grep *whatever*
Searches for processes running as the user you are logged on as with "whatever" in there file name\config. This can also be piped through another grep to refine the search more so.