Use your Linux terminal to celebrate a banner year

Need make sure your command is heard? Pipe it to a banner and it won't be missed.
137 readers like this.
Linux toy: figlet

Jason Baker

Hello again for another installment in our 24-day-long Linux command-line toys advent calendar. If this is your first visit to the series, you might be asking yourself what a command-line toy even is. We’re figuring that out as we go, but generally, it could be a game, or any simple diversion that helps you have fun at the terminal.

Some of you will have seen various selections from our calendar before, but we hope there’s at least one new thing for everyone.

Today's toy if figlet, a utility for printing text in banner form across your Linux terminal.

You'll likely find figlet packaged in your standard repositories. For me on Fedora, this meant installation was as simple as:

$ sudo dnf install figlet

After that, simply use the program's name to invoke it. You can either use it interactively, or, pipe some text to it, as below:

echo "Hello world" | figlet
 _   _      _ _                            _     _ 
| | | | ___| | | ___   __      _____  _ __| | __| |
| |_| |/ _ \ | |/ _ \  \ \ /\ / / _ \| '__| |/ _` |
|  _  |  __/ | | (_) |  \ V  V / (_) | |  | | (_| |
|_| |_|\___|_|_|\___/    \_/\_/ \___/|_|  |_|\__,_|

There are a number of different font options available for figlet. To see the options available to you, try the command showfigfonts. For me, this displayed over a dozen. I've copied out a few of my favorites below.

block :
                                            
_|        _|                      _|        
_|_|_|    _|    _|_|      _|_|_|  _|  _|    
_|    _|  _|  _|    _|  _|        _|_|      
_|    _|  _|  _|    _|  _|        _|  _|    
_|_|_|    _|    _|_|      _|_|_|  _|    _|  


bubble :
  _   _   _   _   _   _  
 / \ / \ / \ / \ / \ / \ 
( b | u | b | b | l | e )
 \_/ \_/ \_/ \_/ \_/ \_/ 


lean :
                                     
    _/                               
   _/    _/_/      _/_/_/  _/_/_/    
  _/  _/_/_/_/  _/    _/  _/    _/   
 _/  _/        _/    _/  _/    _/    
_/    _/_/_/    _/_/_/  _/    _/  


script :
                          
               o          
 ,   __   ,_        _ _|_ 
/ \_/    /  |  |  |/ \_|  
 \/ \___/   |_/|_/|__/ |_/
                 /|       
                 \|       

You can find out more about figlet on the project's homepage. The version I downloaded was made available as open source under an MIT license.

You'll find that figlet isn't the only banner-printer available for the Linux terminal. Another option that you may choose to check out is toilet, which comes with its own set of ASCII-art style printing options.

Do you have a favorite command-line toy that you we should have included? Our calendar is basically set for the remainder of the series, but we'd still love to feature some cool command-line toys in the new year. Let me know in the comments below, and I'll check it out. And let me know what you thought of today's amusement.

Be sure to check out yesterday's toy, Take a swim at your Linux terminal with asciiquarium, and come back tomorrow for another!

What to read next
User profile image.
Jason was an Opensource.com staff member and Red Hatter from 2013 to 2022. This profile contains his work-related articles from that time. Other contributions can be found on his personal account.

2 Comments

Merry Gnusmas. It's Samsung spelled backwards.

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.