当前位置:首页 > 虚拟机 > 正文

虚拟机怎样切换图形与字符界面(虚拟机字符界面和图形化界面切换)

Switch the redhatlinux6 graphical interface to the command line in vmware
Linux is installed with a virtual machine. After the installation is successful, the graphical interface is entered by default. So how to switch between the graphical interface and the command line interface? What?
First open VMware and start the Linux system. It will enter the graphical interface
To switch from the graphical interface of Linux to the command interface, you can press Ctrl+Alt+Fn (n=1,2 ,3,4,5,6), but Ctrl+Alt is already occupied in the virtual machine, that is, the cursor switches out of the virtual machine. So you need to press Ctrl+Shift+Alt+Fn (n=1,2,3,4,5,6).
To switch from the Linux command interface to the graphical interface, you can press Alt+F1 (or F1--F7, depending on the personal computer settings. It may be different) (you can also enter the command startx to enter the graphical interface).

Switching between ubuntu character terminal and graphical interface
1. Press ALT+CTRL+F1 to switch to the character interface (Linux physical machine)
If it is a Linux system installed on a VMware virtual machine, switch When you get to the character interface, you need the following operations
Press ALT+CTRL+SPACE (space), do not release ALT+CTRL, and then press F1. This will allow you to switch to the character interface.
2. Press ALT+CTRL+F7 to switch to the graphical interface (Linux physical machine)
If it is a Linux system installed on a VMware virtual machine, the following operations are required to switch to the graphical interface
Press Press ALT+CTRL+SPACE (space), do not release ALT+CTRL, and then press F7. This will allow you to switch to the graphical interface.
****If you start Ubuntn in command line mode, if you want to return to the graphical interface in the character terminal, you only need the following command:
$startx

Switch linux graphical interface to character interface command linux graphical interface switch

How does xshell switch linux interface?

You can switch to the Linux interface by pressing alt+f2.

How to switch between foreground and background processes in Linux system?

1. Shell supports role control, with the following commands: 1. command to let the process run in the background 2. jobs_l to view the processes running in the background 3. fg%n to bring the process n running in the background to the foreground 4. bg%n lets process n go to the background; PS: "n" is the process number viewed by jobs. 2. Execute the command and switch to the background. When running the command in the Linux terminal, add the symbol at the end of the command to let the program run root@Ubuntu$ in the background. /tcpserv01 3. Switch the running program to the background. If the program is running in the foreground, you can use the Ctrl+z option to pause the program, and then use the bg% [number] command to put the program into the background. This step is divided into 3 steps. As follows: 1. Pause program execution CTRL+Zctrl+z is related to system tasks. ctrl+z can put a command being executed in the foreground into the background and pause it. [Oracle@linuxidc~]$[1]+2. View suspended programs and jobs. Use the jobs or ps command to view the jobs being executed. [oracle@linuxidc~]$jobs-l[1]+ command execution result, + indicates a current job, and the minus sign indicates a job after the current job. The jobs-l option can display the PID of all tasks. The status of jobs can be running, stopped, or terminated. 3. Switch the program to the background bg to change a command paused in the background to continue execution. If there are multiple commands in the background, you can use bg %jobnumber calls out the selected command. [oracle@linuxidc~]$bg%1[oracle@linuxidc~]$jobs-l[1]+4. To switch the program to the foreground, you can also use the fg%[number] command to drop a program to the foreground and run it[oracle @linuxidc~]$fg%1. /tcpserv015. To terminate the background program, you can also directly terminate the program running in the background. Use the kill command [oracle@linuxidc~]$kill%1. However, if the task is terminated (kill), the shell will be deleted from the list known by the current shell environment. The process identifier of the task; that is, the jobs command displays information about tasks that are running or suspended in the background in the current shell environment.

How to switch modes in uos system?

1. When the system is not in the virtual machine

Use ctrl+alt+F1~6 to switch to the command line interface; ctrl+alt+F7 to switch to the graphical interface

2. The situation of the system in the virtual machine

Ctrl+Alt+shift+F1~6 switches to the command line interface; use Alt+F7 to return to the graphical interface

( Note: After switching to the above method, the graphical interface is not closed)

3. Command mode modification

Open the terminal, enter init3, and press Enter.

The meaning of the numbers after init:

0-halt(DoNOTsetinitdefaulttothis)//Shutdown (do not set initdefault to zero or 0, because this will make Linux unable to start)

1-Singleusermode//Single user mode, just like the safe mode under WinXP

2-Multiuser,withoutNFS(Thesameas3,ifyoudonothavenetworking)//Multiuser, but without NFS

< p>3-Fullmultiusermode//Full multi-user mode, standard operating platform, that is, the command line interface

4-unused//Generally not used, but in some special circumstances you can use it to do some things< /p>

5-X11//Select this, the system will enter the graphical login interface when logging in

6-reboot(DoNOTsetinitdefaulttothis)//Restart (do not set initdefault to 6, Because this will cause Linux to restart continuously)

(Note: After the above method is switched, the graphical interface is completely closed. If there are files in the window that are not saved, they will be lost. You can use init5 to return to the graphical interface, but the original The process is dead. Use startx to load the graphical interface on the current level 3)

4. Each time you start to directly enter the character interface, you need to modify the etc/inittab file and change the startup level from 5 to 3 That's it

The terminal executes vi/etc/inittab as root to open the inittab file. After editing, save and restart.

How to switch between rdesktop full-screen and window modes?

Use rdesktop to remotely access a Windows machine under Ubuntu. If you add the -f parameter, it will enter full-screen mode. The full screen here is completely full screen, completely blocking the Linux interface. I can't find a way to exit. Fortunately, ctrl+alt+enter can be used. . .

Linux command to exit the graphical interface?

Take the Centos system as an example: after installing Centos, the system will enter the graphical interface by default when it starts. If you want to exit the graphical interface, there are two ways, one is to convert directly, and the other is to modify it. Configuration (the future login is the command line)

The first method: directly press ctrl+alt+F2 to switch to the command line

The second method: execute the command , and then restart the host. After the host starts, it will be in the default command line mode; if you want to switch back, execute and then restart the host.

Switch text mode from graphical mode in VM
Whether it is OracleVitualBox or VMware, you can use shortcut keys to quickly switch between graphical and text modes. Ctrl+alt+f{1-6}.
VM occupies the hotkey ctrl+alt. For example: in VMware, you need to press ctrl+alt to exit the virtual machine.
The Linux system has a total of six different runlevels (runlevels). In different runlevels, the virtual machine has different running states. Enter tty to see which virtual terminal the current window is in.
Which six virtual terminals are there?
The device files /dev/tty1,/dev/tty2,...,/dev/tty6 respectively correspond to 6 virtual terminals
0: Stop (note Don't set initdefault to 0, otherwise Linux cannot start)
I tried it:
1. Graphical interface mode:
Press the shortcut Key: ctrl+alt+f1, quickly switch virtual terminals as follows
2: Multi-user, but no NFS.
3: Full multi-user mode, standard run level.
Run level 3 is the standard console text interface mode we generally use.
Similarly, convert text mode to graphical mode in seconds: alt+f1.
Input: echoIjusthaveatry>/dev/tty3 echosuccess>/dev/tty4 Use shortcut keys respectively Switch virtual terminal, ctrl+alt+f3 and ctrl+alt+f4 to view the output results.
Summary:
I verified successfully on the win10 operating system. The shortcut key for switching between graphical mode and text mode in the VM:
ctrl+ alt+f{2-6} 
Switch text mode to graphical mode shortcut key: alt+f1.