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.
Discover more from Neependra Khare
Subscribe to get the latest posts sent to your email.