• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

banner Command Examples (Print the given argument as a large ASCII art)

by admin

The “banner” command is a utility that allows you to print a given argument or message as large ASCII art. ASCII art is a technique that uses characters from the ASCII character set to create images or text-based graphics. It is a popular form of artistic expression in the digital realm.

When using the “banner” command, you provide a text or message as an argument, and the utility transforms it into a visually appealing representation using large characters made up of ASCII characters. The resulting output appears as if the text is composed of enlarged characters, typically spanning multiple lines.

The primary purpose of the “banner” command is to create eye-catching and attention-grabbing text-based displays. It can be used for decorative purposes, to create banners or headers for documents, presentations, or web pages, or to add visual emphasis to messages or announcements.

The resulting ASCII art generated by the “banner” command is typically displayed in a monospaced font, where each character occupies an equal amount of space. The characters used are chosen specifically to create a larger visual representation of the original text.

The “banner” command offers various options and customizations to control the appearance of the generated ASCII art. For example, you can adjust the font size, choose different character sets, or specify the width of the output.

Using the “banner” command is straightforward. You simply pass the desired text or message as an argument, and the command produces the corresponding ASCII art as output. The resulting art can be redirected to a file, displayed on the terminal, or integrated into other applications or scripts.

banner Command Examples

1. Print the text message as a large banner (quotes are optional):

# banner "Hello World"

2. Print the text message as a banner with a width of 50 characters:

# banner -w 50 "Hello World"

3. Read text from stdin:

# banner

Summary

Overall, the “banner” command is a fun and creative tool for generating large ASCII art from text or messages. It provides an easy way to create visually appealing displays using characters from the ASCII character set. Whether for decorative purposes or adding emphasis to text, the “banner” command offers a simple yet effective way to transform ordinary text into eye-catching ASCII art.

Filed Under: Linux

Some more articles you might also be interested in …

  1. strip Command Examples in Linux
  2. CentOS / RHEL 5 : How to use the faillog command to track failed login attempts
  3. groupmod: command not found
  4. How to create sparse files in Linux using ‘dd’ command
  5. apport-bug Command Examples in Linux
  6. How to check change log of RPM packages on CentOS/RHEL
  7. How to Mirror Swap, Boot and Root Partions in CentOS/RHEL 7 Using mdadm Utility
  8. cargo: Manage Rust projects and their module dependencies (crates)
  9. lvremove Command Fails With Error “LVM – Can’t remove open logical volume”
  10. eval: Execute arguments as a single command in the current shell and return its result

You May Also Like

Primary Sidebar

Recent Posts

  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright