Linux command
showconsolefont 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Display the current console font
showconsolefont
Show only font information
showconsolefont --info
Display font from a specific console device
showconsolefont --console=[/dev/tty1]
Display with verbose output
showconsolefont --verbose
说明
showconsolefont outputs the current EGA/VGA console screen font to standard output. It displays a table of glyphs (characters) in the currently loaded font, allowing you to see all available characters. The command is useful for troubleshooting font rendering issues on the Linux console, verifying that a specific font is loaded after using setfont, or determining font characteristics for scripting purposes. With the --info option, it outputs just the font dimensions and character count without displaying the full glyph table.
参数
- -i, --info
- Don't print the font table, just show ROWSxCOLSxCOUNT and exit.
- -C, --console=_DEV_
- Specify the console device to be used. The argument is a pathname (e.g., /dev/tty1).
- -v, --verbose
- Be more verbose. Provides additional information about the font, such as whether it is a Unicode font.
- -V, --version
- Print version number.
- -h, --help
- Print usage message.
FAQ
What is the showconsolefont command used for?
showconsolefont outputs the current EGA/VGA console screen font to standard output. It displays a table of glyphs (characters) in the currently loaded font, allowing you to see all available characters. The command is useful for troubleshooting font rendering issues on the Linux console, verifying that a specific font is loaded after using setfont, or determining font characteristics for scripting purposes. With the --info option, it outputs just the font dimensions and character count without displaying the full glyph table.
How do I run a basic showconsolefont example?
Run `showconsolefont` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i, --info do in showconsolefont?
Don't print the font table, just show ROWSxCOLSxCOUNT and exit.