Monday, 17 October 2016

How to add fancy Linux banners using figlet



You must have seen the basic banner command in linux|UNIX for display fonts with little fanciness. Now I will show how to add fancy Linux  banners using figlet. Basically figlet is a tool that is used to display large characters made up of ordinary screen characters. This tool can be used to display nice messages in shell scripts output to produce fancy output.
So Let’s gets started with fanciness :
  • Download the rpm from “https://pkgs.org/download/figlet” as per your flavor of Linux.
  • Install the rpm package using rpm command as below:
1
2
3
4
[root@kalwa2]# rpm -ivh figlet-2.2.5-9.el6.x86_64.rpm
warning: figlet-2.2.5-9.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
1:figlet ########################################### [100%]

Re Verify using rpm -qa command if in case:
1
2
[root@kalwa2 ~]# rpm -qa|grep -i figlet
figlet-2.2.5-9.el6.x86_64
  • So lets fire figlet command with the fancy word you required:
1
[root@kalwa2 ~]# figlet UxTechno

No comments: