Printing ASCII Art in the Shell
Introduction: As Linux users, we often work extensively with terminals, dealing with text-based interfaces. While this can be efficient, it might also become monotonous. Fortunately, there are various programs available that allow us to display ASCII artwork in the shell, adding a touch of fun and creativity to our terminal experience.
In this tutorial, we will explore different methods of rendering ASCII artwork on the terminal, making our command-line interactions more visually appealing.
Displaying Banners with ‘banner’: As the name suggests, the ‘banner’ command allows us to create text banners in the terminal using ASCII characters. It is one of the most straightforward ways to generate ASCII artwork.
2 Installing ‘banner’: By default, the ‘banner’ command might not be available on all Linux distributions. In such cases, we need to install it before using it.
For rhel,
yum install banner
To begin, we can immediately start using the “banner” command followed by the desired text to be printed.
FIGlet: Crafting Artistic Banners with Frank, Ian, and Glenn’s Letters
To create banners with enhanced customization options, the “figlet” command comes to our aid.
Installing FIGlet Since FIGlet is not typically included in most distributions, it’s necessary to install it before utilization
yum install figlet -y
Usage
figlet <message>
Generating Artistic Cow Speech with cowsay
True to its name, the cowsay command empowers us to display an ASCII cow uttering a personalized message.
Installing cowsay ..
yum install cowsay
Usage
cowsay <message>
Thanks for reading …..