Quick Method for modifying linux resolution in command line mode

Source: Internet
Author: User
Modify the resolution of Linux text (command line) mode

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
640 × 480 800 × 600 1024 × 768 1280 × 1024
256
769 771 773 775
15 digits 784 787 790 793
16-bit 785 788 791 794
24-bit 786 789 792 795



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


Related Article

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.