Switching of virtual machine +ubuntu graphical interface and terminal interface

Source: Internet
Author: User

Virtual machine environment, switch between GUI and text interface:
1 VMware Virtual machine, from the graphical interface switch to the text interface, and the virtual machine settings, the default VM occupies Ctrl+alt as a hotkey, so the graphical interface switch to the text interface of the key combination is: Ctrl+alt+shift+f (n), where F (n) is f1-f6;

The key combination of switching back from the text interface to the graphical interface is: ALT+F7; switch between different console interfaces in the text interface: Alt+f (n), where F (n) is f1-f6 and 6 consoles;

2 You can also modify the accelerator keys for VMware. Set in Edit->preference


Equipment files/dev/tty1,/dev/tty2,.....,/dev/tty6, respectively, corresponding to 6 virtual terminals;

The device file for the terminal opened in X-windows is:/dev/pts/n, where n is from zero, represented as the opening terminal of the first, which is:/dev/pts/0.

If I enter "echo I just try!" here >/dev/tty6, this sentence will be entered into the virtual Terminal 6, you can switch to see there, Ctrl+alt+shift +f6.

Here is a display of several device files corresponding to the terminal. In addition, after you open a terminal, you can see which terminal you are currently using through the TTY command.

1./dev/tty, indicates that the terminal currently in use, that is, you enter the Echo Test>/dev/tty, will display the test in your current terminal.

2./dev/tty0, this represents the terminal that is currently in use when using Terminal tty1 to Tty6. In other words, when you tty1 to one of the inputs in TTY6: Echo Test >/dev/tty0, Test will echo back at the current terminal.

3./dev/console, which is similar to Tty0, can also be echoed to the current terminal. It is a console terminal. Linux uses a physical display and keyboard to multiplex to multiple virtual terminals: terminal Tty1 to Tty6. Terminal Tty1 to Tty6 can press ALT+FN, N is 1-6, to switch.

4./dev/pts/n, for X-windows, under open terminal, you can try to open the terminal in X-windows under the command TTY to view the device files that you use. This is called the Pseudo terminal, its main device number is 5, from the device number is 2, 3. Corresponds to the main device and slave device, because the implementation of a pseudo-terminal includes two devices, master device and slave device. From the device is responsible for the corresponding shell process communication, while the main device is responsible for the window display part. Refer to Section 8.7, "Linux kernel source code scenario analysis", which is described in detail.

Switching of virtual machine +ubuntu graphical interface and terminal interface

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.