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)