If you're new to Linux, you might be wondering how to make your terminal experience more fun or personalized. Thatโs where two awesome tools come in: figlet and lolcat.
With these, you can turn boring terminal sessions into colorful and creative ones perfect for showing off your system with style!
Table of Contents
- What Youโll Learn
- Step 1: Install figlet on RHEL 9
- Step 2: Add Color with lolcat
- Step 3: Display Info and ASCII Art on Terminal Launch
- What It Looks Like
- Final Thoughts
- Tools Recap
๐งพ What Youโll Learn
- How to install
figletto generate ASCII art text - How to install
lolcatto add rainbow colors - How to create a custom welcome banner that displays every time you open your terminal
- How to include system info like hostname and uptime
๐ง Step 1: Install figlet
Letโs start by installing figlet, which converts regular text into fun ASCII art.
โ Update your system first:
sudo dnf update -y
โ Install EPEL (Extra Packages for Enterprise Linux):
sudo dnf install epel-release -y
โ
Now install figlet:
sudo dnf install figlet -y
โ Test it out:
figlet "Hello CloudWhistler"
You should see a big, bold ASCII message in your terminal.
๐ Step 2: Add Color with lolcat
Now letโs spice things up with lolcat, a tool that adds rainbow colors to your terminal output.
โ Install Ruby (needed for lolcat):
sudo dnf install ruby -y
โ
Install lolcat using Ruby:
sudo gem install lolcat
โ Try it with figlet:
figlet "Red Hat Rocks!" | lolcat
Now your ASCII art should show up in a rainbow of colors! ๐
๐ฅ๏ธ Step 3: Display Info and ASCII Art on Terminal Launch
Wouldnโt it be cool if your welcome banner appeared automatically every time you opened a terminal? Letโs do that!
โ
Open your .bashrc file:
vim ~/.bashrc
This file runs automatically when a new terminal session starts.
โ Add the following to the bottom of the file:
# === Custom RHEL 9 Terminal Banner ===
clear
figlet -f slant "Welcome CloudWhistler" | lolcat
# === Show System Info ===
echo "Hostname : $(hostname)" | lolcat
echo "Date : $(date)" | lolcat
echo "Uptime : $(uptime -p)" | lolcat
echo "Users : $(who | wc -l)" | lolcat
echo "Kernel : $(uname -r)" | lolcat
โ Save and exit:
- If you're using
vim, try:wto save or:wqto save and quit.
โ Apply changes immediately:
source ~/.bashrc
๐งช What It Looks Like
Hereโs an example of what you'll see next time you open your terminal:
All beautifully rainbow-colored with lolcat. ๐
๐ง Final Thoughts
This is a simple way to personalize your Linux environment and learn about customizing your shell. Itโs fun, educational, and a great stepping stone to more advanced terminal customizations.
๐ก Bonus Ideas:
- Add a quote of the day
- Display disk or memory usage
- Customize the font style using
figlet -f(tryfiglet -f script Hello!)
๐ ๏ธ Tools Recap
| Tool | Description |
|---|---|
| figlet | Converts text into ASCII art |
| lolcat | Adds rainbow colors to terminal |
| .bashrc | Script that runs at terminal start |
Thanks for reading! If you liked this article, follow me for more beginner-friendly information.
๐ฅ๏ธ๐ฅ Letโs make your terminal awesome.




Top comments (0)