# Colorful grep output

**URL:** <https://linux-tips.com/t/colorful-grep-output/151>\
**Category:** Shell\
**Created:** [April 16, 2008, 1:24pm UTC](https://linux-tips.com/t/colorful-grep-output/151 "2008-04-16T13:24:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debuser](https://linux-tips.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@Debuser](https://linux-tips.com/u/Debuser)\
**Post date:** [April 16, 2008, 1:24pm UTC](https://linux-tips.com/t/colorful-grep-output/151/1 "2008-04-16T13:24:28Z")

</div>

To make grep outputs colorful, just `--color` parameter:

```
grep --color=auto

```

You can make an alias for this if you want this behaviour default:

```
alias grep='grep --color=auto'

```

or putting following line in your `.bashrc` file:

```
GREP_OPTIONS='--color=auto'
```
