GNU+Linux command memo

Colors in the console

Couleurs dans le terminal

alias ls='ls --color=auto' (1)
alias grep='grep --color' (2)
alias rgrep='rgrep -n --color' (2)
alias diff='colordiff'
alias tail='colortail'
alias make='colormake'

function wcolordiff () { wdiff -n $1 $2 | colordiff }
1 All the lines can be copie in your .zshrc or .bashrc
2 You may use rg instead, it’s natively using colors

All at once and even more colout by Nojhan:

$ tail /var/log/boot.log | colout fail
$ tail /var/log/boot.log | colout "^.*fail.*$" red bold