← 返回命令列表

Linux command

figlet 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create ASCII art

figlet "[Hello World]"

Use specific font

figlet -f [slant] "[text]"

Center output

figlet -c "[text]"

Set width

figlet -w [80] "[text]"

List available fonts

figlet -I 2 | xargs -I {} ls /usr/share/figlet/

说明

figlet renders text as large ASCII art characters using various fonts. It's commonly used for terminal banners, welcome messages, and stylized text output. Multiple fonts provide different styles from simple block letters to elaborate designs. The tool adjusts character spacing (smushing) to create compact or spread-out output. figlet reads from standard input if no message is provided, enabling piped input.

参数

-f _FONT_
Font file to use.
-w _WIDTH_
Output width.
-c
Center output.
-l
Left justify.
-r
Right justify.
-k
Kerning mode.
-W
Full width (no smushing).
--help
Display help information.

FAQ

What is the figlet command used for?

figlet renders text as large ASCII art characters using various fonts. It's commonly used for terminal banners, welcome messages, and stylized text output. Multiple fonts provide different styles from simple block letters to elaborate designs. The tool adjusts character spacing (smushing) to create compact or spread-out output. figlet reads from standard input if no message is provided, enabling piped input.

How do I run a basic figlet example?

Run `figlet "[Hello World]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f _FONT_ do in figlet?

Font file to use.