lolcat for more color in the terminal


Rainbow colors in the Linux Console with lolcat

For those who believe that the Linux Command Line is boring and not fun, they are probably wrong. This post is about Linux, and fantastically colorful colored Linux terminals.

I installed the small utility called lolcat, which can display the outputs in rainbow colors in the terminal, on a Fedora Workstation 30 and on a Linux Mint 20 (Ubuntu).

lolcat is a utility for Linux, BSD and OSX that works similarly to the cat command (Unix) and outputs in rainbow colors.

What is Lolcat ?

lolcat is a utility for Linux, BSD and OSX that works similarly to the cat command (Unix) and outputs in rainbow colors. The application /usr/bin/lolcat is similar to the /usr/bin/cat, closely known for Unixoid OS. concatenate (chain). lolcat is mainly used to output text outputs in rainbow colors in the Linux terminal. lolcat was originally developed in Ruby, there is clone on Python, and besides that in C of jaseg, this probably most performant version, is available as a binary in many repository of the distributions.

So the easiest thing is to install lolcat directly from the default repository. Fedora installs lolcat as follows.

For Linux Mint, which is based on the Linux distribution Ubuntu, the deployment is therefore as usual with the apt-get package manager.

Now command lines commands can be output in rainbow colors, such as the calendar.

Cal | lolcat

Spend the extended calendar for the whole year.

To get a different welcome message in the form of a quote each time you open the terminal, similar to MOTD, the following lines can be inserted into the .bashrc file at the bottom, with an editor of choice such as nano .bashrc, or vi .bashrc

To do this, cowsay still needs to be installed, so that funny animals or mythical creatures are drawn in ASCII text, whereby the message appears in a speech bubble.

For Linux Mint and Ubuntu again as follows.

Also, for example, the page can be refreshed with rainbow colors.

man cowsay | lolcat
man cowsay | lolcat

The query of the network configuration is made much clearer by color-separated contrasts, with the lolcat parameters vertical_speed (-v) and horizontal_speed (-h).

ip a | lolcat -v 10 -h 0

Some more examples of using lolcat.

cowsay -f kitty U Can’t Touch This | lolcat -v 1.1 -h 0.5
fortune | cowsay -f eyes | lolcat -v 2
fortune -n long | cowsay -f dragon-and-cow | lolcat -v 1.2 -h 0.8
cowsay -f ghostbusters Look at my gist | lolcat -v 2
figlet -c Welcome | lolcat -v 2

There are countless ways to use lolcat, here are just a few examples for illustrative purposes. How to decorate some useful system commands with lolcat here.

The cowsay file list and the help page, as well as the fortune options.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Leave a Reply

Your email address will not be published. Required fields are marked *