How to Make Your Linux Terminal More Colorful With lolcat

The terminal can seem a little boring compared to flashier graphical Linux apps. lolcat is a program that adds some flair to your Linux terminal sessions. Here’s how to install and use lolcat on Linux.

What Is lolcat?

lolcathas nothing to do with lolcats. It’s a program that displays text in rainbow colors on your terminal. It’s similar to the cat utility: you can give it files from command-line arguments or pipe output into it.

How to Install lolcat on Linux

lolcat is easy to install using standard Linux package managers. For example, on Debian or Ubuntu:

On RHEL, Fedora, and CentOS:

4

And on Arch Linux:

Using lolcat to Add Colors to the Terminal

lolcat is simple enough to use in the terminal. it’s possible to use it like cat, as mentioned earlier. It takesstandard input, meaning that you can call it from the Linux command line or feed files to it as input. If you run “lolcat” at the shell, it’ll print back whatever lines you type in color.

you may also supply a file name and lolcat will print its contents in rainbow colors as well:

MacBook and a Dell laptop running ZorinOS next to each other

The real fun comes when you use it in pipelines. it’s possible to print out directory listings in vivid colors:

Like many other command-line programs, lolcat has options you could tweak to adjust the output. The-aoption displays a color-cycling animation before the line is printed. The-dand-soptions control the length and speed of this animation.

firefox logo with yellow warning symbol

The-poption will control the slant of the stripes. The-Foption controls the frequency of the rainbow effect. The-toption enables 24-bit color, while-fforces color output (the options are case-sensitive, like in many other Linux commands). The-ioption will invert the foreground and background colors, giving a rainbow background to your terminal text.

The Linux Command Line Can Be Fun!

While the command line is productive, you could make your Linux terminal pretty and have fun with the right tools like lolcat. The Linux terminal offers plenty of ways to goof off, like offering fun commands you can use when you’ve run out of things to do in the terminal.

Working on the Linux terminal doesn’t have to be stressful. Take some time out and enjoy the moment with these fun Linux command-line tools.

Dell monitor showing Windows 10 desktop

Who asked for these upgrades?

My iPhone does it all, but I still need my dumb phone.

linux tux on a rainbow background

Make sure you don’t miss these movies and shows before Netflix removes them.

Tor spoiled me forever.

Quality apps that don’t cost anything.

Technology Explained

PC & Mobile