Virtual terminals in Linux

Source: Internet
Author: User
Linux virtual terminal-general Linux technology-Linux technology and application information. For more information, see the following section. The so-called virtual terminal is physically a software console on the local machine, rather than a real remote physical terminal. However, the virtual terminal is more unified in implementation, this is like Linux, which treats devices and general files equally.

Linux is a multi-terminal operating system. You can even use the same user ID to log on to multiple terminals at the same time.

By default, there are 6 console virtual terminals and 1 GUI terminal. To log on to the terminal in Red Hat Linux in the past, you can log on to the console virtual terminal through Alt + F1 to F6, and log on to the GUI terminal through Alt + F7. In Fedora Core 6 and Fedora7, you need to use Ctrl + Alt + Fn. You can also use Alt + left and right arrows on the console terminal to select a nearby Terminal (however, this key combination does not work in the GUI ).

Check/etc/inittab again

Linux is a very personalized system, which can be customized by yourself in many places. We have read the inittab file in the previous article. Now we need to read it again, in fact, we can also use this file to control the number of virtual terminals on Linux.

Here:

1: 2345: respawn:/sbin/mingetty tty1

2: 2345: respawn:/sbin/mingetty tty2

3: 2345: respawn:/sbin/mingetty tty3

4: 2345: respawn:/sbin/mingetty tty4

5: 2345: respawn:/sbin/mingetty tty5

6: 2345: respawn:/sbin/mingetty tty6

From 1 to 6, you have 6 console terminals. You can simply modify this part of the file and add or delete some console virtual terminals. For example, comment out the sixth line (Add "#" before it), or delete it to remove tty6, you can also add your seventh terminal by adding the following:

7: 2345: respawn:/sbin/mingetty tty7

You can simply modify the first and last numbers.
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.