Install
# RHEL / Alma / Rocky (EPEL often required) sudo dnf install epel-release sudo dnf install figlet # Debian / Ubuntu sudo apt install figlet # openSUSE sudo zypper install figlet # Arch sudo pacman -S figlet
What it does
figlet prints text in large ASCII art letters. It uses FIGlet font files to render each character and is commonly used for terminal headings, scripts, MOTD/login banners, and playful output formatting.
How it works (mechanical)
- Loads a FIGlet font (usually from
/usr/share/figletor similar). - Maps each character in your input to an ASCII-art glyph from the font.
- Outputs the composed banner to stdout (so it’s easy to pipe or redirect).
Quick Start
# Basic banner figlet Hello # Centered banner figlet -c "System Ready" # Choose a font figlet -f slant "Linux"
10 Practical Examples
- Basic usage
figlet "Welcome"
- Centered output
figlet -c "Binghamton"
- Specify a font
figlet -f standard "CLARUS"
- List fonts (by browsing the font directory)
ls /usr/share/figlet
Font path varies by distro; try
locate *.flfordpkg -L figlet(Debian) /rpm -ql figlet(RHEL). - Set width (wrap control)
figlet -w 80 "Wide Banner"
- Read from stdin
echo "Maintenance Window" | figlet
- Right-justify
figlet -r "Right Side"
- Left-justify explicitly
figlet -l "Left Side"
- Combine with cowsay
figlet "Hello" | cowsay
- Use in a login script (bash)
# Add to ~/.bashrc (or MOTD script) figlet -f slant "Welcome"
Notes & Gotchas
- Font files typically end in
.flf. Install extra font packages if you want more styles. - Terminal width matters. If output wraps badly, reduce text length, change font, or adjust width with
-w. - Color:
figletoutputs plain text. Uselolcator terminal coloring if you want colorized banners. - Unicode: classic FIGlet fonts are ASCII-focused. For richer effects/filters, consider
toilet.
Historical Context
FIGlet originated in the early 1990s as a way to produce large letter banners in plain text terminals. It became a staple “fun utility” on UNIX-like systems and remains widely packaged and used today.
Modern Equivalent
toilet is a common modern companion that remains FIGlet-compatible while adding filters and styling.
For more elaborate startup dashboards, people also use shell prompt frameworks and MOTD generators—but figlet
is still the simplest banner tool.
Related Commands
toilet— FIGlet-compatible banners with filters.cowsay— speech bubbles for banners.fortune— quote source for greetings.lolcat— colorize banner output.