Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to modify the resolution of Linux terminal interface

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to modify the Linux terminal interface resolution". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The default resolution of my system in text mode is 800cm 600. When browsing the web with lynx, I feel that the font is too large. If I want to adjust the resolution in this mode, I google and find that it is actually very simple.

Go to the / boot/grub/ directory, and then you can see a file named menu.lst inside. Open it with vim, and you can see the following:

The code is as follows:

# grub.conf generated by anaconda

#

# Note that you do not have to rerun grub after making changes to this file

# NOTICE: You have a / boot partition. This means that

# all kernel and initrd paths are relative to / boot/, eg.

# root (hd0,0)

# kernel / vmlinuz-version ro root=/dev/hda2

# initrd / initrd-version.img

# boot=/dev/hda

Default=0

Timeout=5

Gfxmenu (hd0,0) / message

Title RedFlag (2.6.22.6-1)

Root (hd0,0)

Kernel / vmlinuz-2.6.22.6-1 ro root=LABEL=/ vga=788 splash=silent

Initrd / initrd-2.6.22.6-1.img

This vga=788 controls your resolution and color mode, and you can change it to any mode you like supported by your monitor. The meaning of the corresponding number is as follows:

Change the value and save it, and then restart it. Is it much more comfortable to work at the desired resolution when you come in?

This is the end of the content of "how to modify the Linux terminal interface resolution". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report