Quick Method for modifying linux resolution in Command Line Mode

Source: Internet
Author: User

In my system text mode, the default resolution is 800*600. When I use lynx to browse the webpage, I feel that the font is too large. If I want to adjust the resolution in this mode, I will go to google, the discovery is actually very simple.

Go to the/boot/grub/directory, and you will see a file named menu. lst in it. Use vim to open it and you will see the following content:

# 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-version.img/initrd
# 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. You can change it to any mode that your monitor supports. The meanings of numbers are as follows:

Color Depth
640x480800x6001024x7681280x1024256
76977177377515-bit 784787790793
16-bit 78578879179424-bit 786789792795



Change the value, save it, and restart it again. Is it more comfortable to work at the desired resolution ~~~


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.