Virtual Machine + Ubuntu graphical interface and terminal interface switching

Source: Internet
Author: User
Virtual Machine environment, switching between the graphic interface and text interface: 1 VMWare virtual machine, switched from the graphic interface to the text interface, and related to virtual machine settings, by default, the VM occupies Ctrl + Alt as the hot key, therefore, the graphic interface to switch to the text interface of the key combination: Ctrl + Alt + Shift + F (n), where F (n) is the F1-F6; the text interface to switch back to the graphical interface of the key combination: alt + F7; switch between different console interfaces on the text interface: Alt + F (n ),

In the virtual machine environment, switch between the graphic interface and the text interface:
1. In the vmwarevm, the graphic interface switches to the text interface, which is related to the virtual machine settings. By default, the VM occupies Ctrl + Alt as the hot key. Therefore, the graphic interface switches to the text interface with the combination key: ctrl + Alt + Shift + F (n), where F (n) is the F1-F6;

The combination key that is switched back from the text interface to the graphic interface is: Alt + F7; switch between different console interfaces in the text interface: Alt + F (n), where F (n) is the F1-F6, six consoles;

2. You can also modify the shortcut keys of vmware. Set in edit-> preference

The device files/dev/tty1,/dev/tty2,...,/dev/tty6 correspond to 6 virtual terminals respectively;

The device file corresponding to the terminal opened in x-windows is/dev/pts/n, where n starts from scratch and indicates the first opened terminal: /dev/pts/0.

If I enter "echo I just try!" Here! >/Dev/tty6, which will be input to virtual terminal 6. You can switch to it and view it. Ctrl + Alt + Shift + F6.

Here is the terminal corresponding to several device files. In addition, after opening a terminal, you can run the tty command to view which terminal you are currently using.

1./dev/tty indicates the terminal currently in use, that is, you enter echo test>/dev/tty, and test is displayed in your current terminal.

2./dev/tty0. When using the terminal tty1 to tty6, it indicates the terminal currently in use. That is to say, when you input echo test>/dev/tty0 from tty1 to tty6, the test will be displayed on the current terminal.

3./dev/console, which is similar to tty0 and can be displayed back to the current terminal. It is a console terminal. In Linux, a set of physical displays and keyboards are reused to multiple virtual terminals, namely, terminals tty1 to tty6. The terminal tty1 to tty6 can be switched by Alt + Fn, where n is 1-6.

4. /dev/pts/n, which is an x-windows terminal. You can try to enter the command tty in the terminal opened in x-windows to view the terminal device files you are using. This is called a Pseudo Terminal. Its main device number is 5 and its slave device number is 2 and 3. corresponds to the master device and slave device, because the implementation of a Pseudo Terminal includes two devices, the master device and the slave device. The device is responsible for shell Process Communication, while the main device is responsible for the display of the window. For more information, see section 8.7 of Linux kernel source code scenario analysis.

Linux kernel source code Scene Analysis (upper and lower complete Pro version) PDF http://www.linuxidc.com/Linux/2013-04/82908.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-01/112171.htm

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.