Groceries: Modify the font size of the command line terminal in the CentOS7 high-resolution screen

Source: https://blog.csdn.net/wuxiaoyi163/article/details/79011748
Thank you blogger for sharing!

The key command: setfont

But you need to check the fonts to be written after setfont.
Enter the font directory: /lib/kbd/consolefonts, you can see all the fonts in the current system.
Then choose the largest one and execute:

setfont latarcyrheb-sun32

After running, you can see the obvious effect, if you can't find 32, you can also choose

setfont sun12x22

Make this font take effect at boot

Configure the statement "setfont latarcyrheb-sun32" into /etc/profile

echo 'setfont latarcyrheb-sun32' >> /etc/profile

Restart to take effect

Note : If the profile does not work, configure it to /etc/bashrc

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325939816&siteId=291194637