Using banner Command In Linux (Examples)

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:

banner input_text

How to install banner command in Linux

Also Read:   Using bc command In Linux With Examples: Basic Calculator

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

Also Read:   Using ar Command In Linux (Examples)

1: Displaying “servonode” in large letter

banner servonode

2: Displaying “Servonode Linux Tutorial”

banner Servonode Linux Tutorial

3: Displaying “ServonodeLinuxTutorial”

banner 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

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.