UNIX / Linux: Display Large Colourful Text Banner On Screen
In UNIX and Linux, you can display a large colorful text banner on the screen using the figlet and lolcat utilities.
- To install the
figletandlolcatutilities on your system, you can use the following commands:
For Ubuntu and Debian:
$ sudo apt-get install figlet lolcatFor CentOS, Fedora, and RHEL:
$ sudo yum install figlet lolcatFor macOS:
$ brew install figlet lolcat- Once installed, you can use the
figletutility to generate a large text banner. For example:
$ figlet "Hello World"This will generate a large text banner of “Hello World”.
- You can use the
lolcatutility to add colors to the banner. For example:
$ figlet "Hello World" | lolcatThis will generate a large text banner of “Hello World” with rainbow colors.
- If you want to redirect the banner to a file, you can use the
teecommand. For example:
$ figlet "Hello World" | lolcat | tee banner.txtThis will generate a large text banner of “Hello World” with rainbow colors and save it to a file called banner.txt.
