The figlet command in Linux

25.08.2023
00:09

The figlet command in Linux is used to create ASCII art from plain text. When you run the figlet command with text as an argument, figlet converts that text into ASCII art and displays it on the command line. ASCII art is a graphical representation of text using ASCII characters that are rendered in a variety of styles and fonts to create spectacular headlines, banners, or decorative text elements.

What does the command do?

The figlet command has various options and arguments that allow you to customize the style and font of the ASCII art. With these options, you can change the size and position of the text, select a specific font, and adjust the color and other effects. The figlet command can be used for a variety of purposes such as creating text message decorations, designing headers in scripts, or simply to decorate the command line.

How to install

In Linux, to use the figlet command, you must install it using your distribution's package manager. Below are examples of how to install the figlet command on some popular distributions:

For Ubuntu and Debian:

sudo apt-get install figlet

For Fedora:

sudo dnf install figlet

For CentOS and RHEL:

sudo yum install figlet

Once figlet is installed, you can use it to format text on the command line.

Example usage:

figlet Hello World!

Running this command will generate the ASCII art for the phrase "Hello World!". You can also use various figlet options and arguments to change the style and font of the ASCII art.

15% discount on new VPS
Hurry up to order a server in any location
Choose a VPS

Other articles

25.08.2023
9 937
Knowledge base / Commands
The sl command in Linux
25.08.2023
2 870
Knowledge base / Commands
Cowthink program on Linux
25.08.2023
16 118
Knowledge base / Instructions
Cowsay is a command line utility