Linux / UNIX Print Large Banner on Printer

See all UNIX related articles/faq
How do I print large banners on a printer under Linux / UNIX / BSD operating systems?

You can use a banner command which prints a large, high-quality banner on the standard output. If the message is omitted, it prompts for and reads one line of its standard input i.e., keyboard. The result should be printed on paper of the appropriate width, with no breaks between the pages.
Tutorial details
Difficulty level Easy
Root privileges No
Requirements Linux or Unix terminal
Category Commands
OS compatibility AIX AlmaLinux Alpine Amazon Linux Arch BSD CentOS Debian Fedora FreeBSD HP-UX Linux macOS Mint NetBSD OpenBSD openSUSE Pop!_OS RHEL Rocky Stream SUSE Ubuntu Unix WSL
Est. reading time 1 minutes
Advertisement

Printing large banner on Printer under Linux or Unix

To print “Welcome”, enter:
$ banner "Welcome"
$ banner -w80 "Welcome"

Where,

  • -w80: Change the output from a width of 132 to width 80, suitable for a narrow terminal.

Installing banner command in Linux

Are you using a Debian or Ubuntu Linux based system? Try the apt command or apt-get command to install the same. For instance:
$ sudo apt update
$ sudo apt install sysvbanner

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

4 comments… add one
  • Sam May 15, 2009 @ 1:46

    The below banner command works on MP-RAS UNIX only and I wonder what is the equivalent command on SLES9/SLES?

    banner “Welcome”

    Thanks,
    Sam

    • Manikandan Jan 20, 2014 @ 11:01

      banner”welcome”
      This syntax was not working,Error Message shown like a Command not found

  • Frank Cox Nov 19, 2011 @ 22:23

    Any idea how to print a multipage pdf ot jpeg to make a banner?

  • prashanth Nov 17, 2014 @ 9:24

    banner “Welcome”

    this command is not working in the putty server

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.