The Wayback Machine - https://web.archive.org/web/20240213201317/https://www.geeksforgeeks.org/banner-command-in-linux-with-examples/
Open In App
Related Articles

banner command in Linux with examples

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

banner command in linux is used to print the ASCII character string in large letter to standard output. 


Syntax: 

banner text


Example 1: Printing “1234567890” in large letters. 


Example 2: Printing “GeeksforGeeks” in large letters. There are two things:  

  • First, all the letter will be displayed in Capital letters in standard output.
  • Second, only “GEEKSFORGE” will be printed as banner has a default capacity of 10 characters in a word. After that, you have to give space which is shown in further examples.


Example 3: Printing “Geeks for Geeks” on display. 


Example 4: Trying to print 1234567890123 in a single word but only 1234567890 will be printed on display. 


info banner or man banner command : It displays help information. 


Note: If the terminal shows banner not found, then in UBUNTU use ‘sudo apt install sysvbanner‘ or ‘sudo apt install banner‘ to download it. 

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!


Last Updated : 31 Aug, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads
Complete Tutorials