linux character terminal (console) font change

View installed terminal fonts

ls /usr/share/consolefonts/

Set terminal font

sudo dpkg-reconfigure console-setup

or

sudo vim /etc/default/console-setup

ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="guess"
FONTFACE="TerminusBold"	//字体
FONTSIZE="16x32"	//大小
SCREEN_WIDTH=""

The value of font and size here comes from the file name of the font, TerminusBold32x16.psf.gz. Note that the font size in the file name needs to be reversed.

Guess you like

Origin blog.csdn.net/zzh2910/article/details/89322361