Highlighting the searched keyword with 'grep'.
Add following lines in the ".bashrc" file, which is in your home directory.
alias grep="grep --color"
export GREP_COLOR="1;32"
You can run either run following command to take this change in-effect
$ source ~/.bashrc
OR
Logout and then login.
Labels: tips and tricks