alias grep='grep --color=auto'

Category: Terminal Configuration

alias grep='grep --color=auto'

Always colorize grep output

Makes grep highlight matches in red by default. Ubuntu often sets this in /etc/bash.bashrc, but adding it explicitly ensures it works everywhere. Also set for egrep and fgrep.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.