Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"
Introduction
We will show how to create ASCII text banners from plain text, command-line utility called FIGlet
FIGlet is a simple command-line utility for creating ASCII text banners or large letters out of ordinary text.
Install figlet
sudo apt install figlet #Debian/Ubuntu
sudo yum install figlet #CentOS/RHEL
sudo dnf install figlet #Fedora 22+
Using figlet
- You can use the command plus the text that you want to transform as a banner or large text as shown below
figlet UNIXCOP.COM
![](http://unixcop.com/wp-content/uploads/2021/12/image-211.png)
- Use the -c flag to create the Banner at the center
figlet -c UNIXCOP.COM
![](http://unixcop.com/wp-content/uploads/2021/12/image-212.png)
Also use -l to set the output to the left or -r to print it to the right.
- Control the output width with the -w switch, the default width is 80 columns.
figlet -w Hi UNIXCOP Visitors
![](http://unixcop.com/wp-content/uploads/2021/12/image-213.png)
- Use the full width of your terminal with the -tÂ
figlet -t Hi UNIXCOP Visitors
- Use the -k flag to add a little space between the printed characters
figlet -t -k Hi UNIXCOP Visitors
![](http://unixcop.com/wp-content/uploads/2021/12/image-214.png)
- Also you can read text from a file using the -p option
figlet -kp < file.txt
![](http://unixcop.com/wp-content/uploads/2021/12/image-215.png)
- You can specify another font, using the -f flag, fonts are stored in /usr/share/figlet.
ls -al /usr/share/figlet
![](http://unixcop.com/wp-content/uploads/2021/12/image-216.png)
For example I used font shadow.tlf and slant.tlf as shown below
figlet -f shadow UNIXCOP
![](http://unixcop.com/wp-content/uploads/2021/12/image-218.png)
figlet -f slant UNIXCOP
![](http://unixcop.com/wp-content/uploads/2021/12/image-217.png)
Conclusion
That’s it
We showed you how to install and use figlet to Create ASCII Text Banners in Terminal.
Thanks.
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"