Linux command
banner 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
banner [HELLO]
Example
banner -w [60] [HELLO]
Example
echo "[HELLO]" | banner
说明
banner prints large ASCII art banner text to the terminal. It converts text into large block letters suitable for creating eye-catching messages or headers in terminal output. Each argument is truncated at 10 characters and printed on a separate line. If text is not given on the command line, it is read from stdin. Long text is split across multiple lines at word boundaries when possible.
参数
- -w _cols_, --width=_cols_
- Set maximum output width in characters. Default is 132.
FAQ
What is the banner command used for?
banner prints large ASCII art banner text to the terminal. It converts text into large block letters suitable for creating eye-catching messages or headers in terminal output. Each argument is truncated at 10 characters and printed on a separate line. If text is not given on the command line, it is read from stdin. Long text is split across multiple lines at word boundaries when possible.
How do I run a basic banner example?
Run `banner [HELLO]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -w _cols_, --width=_cols_ do in banner?
Set maximum output width in characters. Default is 132.