Linux / UNIX Print Large Banner on Printer

How do I print large banner on printer under Linux / UNIX / BSD operating systems?

You can use 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. The output should be printed on paper of the appropriate width, with no breaks between the pages.

ADVERTISEMENTS

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.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
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.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.