Tips&Tricks

Matrix and rainbow for your terminal

linux rainbow

This is not useful commands, but they are funny. Can we do silly things sometimes?

Let’s start from coloring our terminal (you can read how it works here: “How to highlight your output in Bash“). We’ll use util:

lolcat

Concatenate FILE(s), or standard input, to standard output. With no FILE, or when FILE is -, read standard input.

Probably your distributive doesn’t have it by default. So you can install it:

brew install lolcat

– for MacOS, and for Ubuntu:

apt install lolcat

It’s like the cat util, but paint output to the colors of rainbow.

cmatrix

It shows text flying in and out in a terminal like as seen in “The Matrix” movie.

But it is better when they are together:

cmatrix | lolcat