• Home
  • Disclaimer
  • Contact
  • Archives
  • About
  • Subscribe
  • Support
  • Advertise

Kernel Talks

Unix, Linux, & Cloud!

  • How-to guides
    • Howto
    • Disk management
    • Configurations
    • Troubleshooting
  • OS
    • HPUX
    • Linux
  • Miscellaneous
    • Software & Tools
    • Cloud Services
    • System services
    • Virtualization
  • Certification Preparations
    • AWS Certified Solutions Architect – Associate
    • AWS Certified Solutions Architect – Professional
    • AWS Certified SysOps Administrator – Associate
    • AWS Certified Cloud Practitioner
    • Certified Kubernetes Administrator
    • Hashicorp Certified Terraform Associate
    • Oracle Cloud Infrastructure Foundations 2020 – Associate
  • Tips & Tricks
  • Linux commands
You are here: Home / Tips & Tricks

Create beautiful ASCII text banners in Linux

Published: March 12, 2017 | Modified: June 19, 2020



Learn how to use two utilities called figlet and toilet to create beautiful ASCII text banners in the Linux terminal. Stylize your terminal!

Beautiful text banners in Linux

Have you seen some stylish ASCII text banners during login on some servers? Or have you seen pages of this blog that have titles written in ASCII? Check out a few styles below too.

 _                        _ _        _ _
| |                      | | |      | | |
| | _____ _ __ _ __   ___| | |_ __ _| | | _____   ___ ___  _ __ ___
| |/ / _ \ '__| '_ \ / _ \ | __/ _` | | |/ / __| / __/ _ \| '_ ` _ \
|   <  __/ |  | | | |  __/ | || (_| | |   <\__ \| (_| (_) | | | | | |
|_|\_\___|_|  |_| |_|\___|_|\__\__,_|_|_|\_\___(_)___\___/|_| |_| |_|
 |                         | |         | |
 |  /  _ \  __| __ \   _ \ | __|  _` | | |  /  __|    __|  _ \  __ `__ \
   <   __/ |    |   |  __/ | |   (   | |   < \__ \   (    (   | |   |   |
_|\_\\___|_|   _|  _|\___|_|\__|\__,_|_|_|\_\____/_)\___|\___/ _|  _|  _|
  _   _   _   _   _   _   _   _   _   _   _   _   _   _   _
 / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
( k | e | r | n | e | l | t | a | l | k | s | . | c | o | m )
 \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|k|e|r|n|e|l|t|a|l|k|s|.|c|o|m|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


|  _ ._._  _ |_|_ _.||  _  _ _ ._ _
|<(/_| | |(/_| |_(_|||<_>o(_(_)| | |

Beautiful eh? You can create them too with tools called figlet and toilet!

figlet tool 

It’s a command-line text styling utility. You need to install figlet package. Once installed you can supply the text you want to stylize to figlet command and it will print stylish output on your terminal. You can copy it and use it anywhere. All the above texts are printed using the figlet only. By default, it will print in below style –

# figlet kerneltalks
 _                        _ _        _ _
| | _____ _ __ _ __   ___| | |_ __ _| | | _____
| |/ / _ \ '__| '_ \ / _ \ | __/ _` | | |/ / __|
|   <  __/ |  | | | |  __/ | || (_| | |   <\__ \
|_|\_\___|_|  |_| |_|\___|_|\__\__,_|_|_|\_\___/

There are list of options stated in its man pages. Few handy and important are :

  • -c, -l ,-r : Center/left/right align text
  • -f : Specify font file i.e. style (List of fontfiles)
# figlet -f digital -c kerneltalks.com
                        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                        |k|e|r|n|e|l|t|a|l|k|s|.|c|o|m|
                        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

In above example we center aligned text and used ‘digital’ font file (style).

Funtip : Rainbow color your banners with lolcat

These text banners are useful to stylize your server’s login screens and print messages to users in a beautiful way!

Below are few examples of figlet in quick run :

figlet utility examples

toilet tool

I know its funny name. Yeah but it’s a tool which do exist in Linux! Check if the toilet package is installed or not and install it if required. Once installed you can submit text to toilet command.

Read also : how to create ASCII banner in HPUX.

# toilet kerneltalks

 #                                  ""#      m           ""#    #
 #   m   mmm    m mm  m mm    mmm     #    mm#mm   mmm     #    #   m   mmm
 # m"   #"  #   #"  " #"  #  #"  #    #      #    "   #    #    # m"   #   "
 #"#    #""""   #     #   #  #""""    #      #    m"""#    #    #"#     """m
 #  "m  "#mm"   #     #   #  "#mm"    "mm    "mm  "mm"#    "mm  #  "m  "mmm"

By default, it will stylize your text as shown in the above example. You have more styling options. Few listed below –

  • -f: font
  • -F: Filter to apply to output (coloring)

Below are few examples of toilet in quick run :

toilet utility examples
⇠ Previous article
Hollywood movie MATRIX like desktop in Linux terminal
Next article ⇢
How to restart service in Linux

Related stuff:

  • How to test internet speed in Linux terminal
  • 3 tricks to get multiple commands output in the same row
  • How to configure login banners in Linux (RedHat, Ubuntu, CentOS, Fedora)
  • Run command on multiple linux servers from windows
  • How to save PuTTY session output automatically
  • Format date and time for Linux shell script or variable
  • Cowsay: Fun in Linux terminal
  • How to change UID or GID safely in Linux
  • 8 ways to generate random password in Linux
  • Hollywood movie MATRIX like desktop in Linux terminal
  • How to list open ports on Linux/Unix server
  • 4 tools to download any file using the command line in Linux

Filed Under: Tips & Tricks Tagged With: best login banners for linux, colored text with toilet in linux, how to create ascii text banners in linux, how to use figlet, how to use toilet in linux, text banners in linux

If you like my tutorials and if they helped you in any way, then

  • Consider buying me a cup of coffee via paypal!
  • Subscribe to our newsletter here!
  • Like KernelTalks Facebook page.
  • Follow us on Twitter.
  • Add our RSS feed to your feed reader.

Share Your Comments & Feedback: Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get fresh content from KernelTalks

  • Email
  • Facebook
  • RSS
  • Twitter

Get Linux & Unix stuff right into your mailbox. Subscribe now!

* indicates required

This work is licensed under a CC-BY-NC license · Privacy Policy
© Copyright 2016-2023 KernelTalks · All Rights Reserved.
The content is copyrighted to Shrikant Lavhate & can not be reproduced either online or offline without prior permission.