banner command in Linux platform allows users to display ASCII character strings in large size on screen. This command is basically helpful when the user intend to show a string when someone log-in using terminal. The strings in such cases are displayed using ‘#’.
So, in this tutorial, we will discuss how to use banner command in Linux platforms. Alike other commands, the banner offers no options or flags. Here comes the syntax to use banner command:
How to install banner command in Linux
Before we can use banner command, we need to install it using apt. the command for installation is here mentioned:
sudo apt install sysvbanner
Displaying man page for banner command
If you want to see the man page for banner command, just run the command below:
man banner or info banner
Examples to use banner command in Linux
1: Displaying “servonode” in large letter
2: Displaying “Servonode Linux Tutorial”
banner Servonode Linux Tutorial
3: Displaying “ServonodeLinuxTutorial”
Note: Since the banner has default capacity of 10 characters in a word, if the number of characters in input increases, it will show you just limited output on screen. This means, the users need to put a space as mentioned in the 2nd example.
Nishant Verma is a senior web developer who love to share his knowledge about Linux, SysAdmin, and more other web handlers. Currently, he loves to write as content contributor for ServoNode.