Thursday, December 22, 2011

How to make grep and less command highlight the keyword

How to make grep and less command highlight the keyword

# dmesg | grep --color -i memory
real memory = 2147483648 (2048 MB)
avail memory = 2090934272 (1994 MB)

or
# dmesg | less +/memory

No comments: