Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux real virtual machine

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. To learn Linux you need to know:

Linux operating system is irreversible.

Linux actually operates on files.

2. Why train on Liunx when training on virtual machines?

1. Virtual machine software is used to build environments that are very close to an enterprise's work environment. (Most of the working environment of enterprise operation and maintenance personnel is managed and maintained by remotely connecting to Linux servers thousands of miles away through SSH tools under Windows desktop system.)

2. Easy to carry, ready to learn

3. You can set up and change the virtual machine system at will, and even format the virtual machine system hard disk, partition operations, and do not worry about losing data.

3shell

1. What is Shell?

Definition: Shell is the user interface of the system, providing an interface for users to interact with the kernel. It receives user input commands and sends them to the kernel for execution. /bin/bash is an interpreter program between the Linux kernel and the user. Linux is now usually referred to as the/bin/bash interpreter responsible for translating and communicating user/program instructions to the kernel. The shell is equivalent to the "shell" of the operating system.

Understand: The default shell type for Linux is bash(Pros: some of bash's basic features: shortcuts, Tab completion, command history, command aliases, standard input and output, redirection, pipeline manipulation, permanent change interpreter)

2. How to open shell

1. Right mouse click---> open in terminal

2. When the shell is open.

Ctrl +Shift+N ##Opens a new shell

Ctrl +Shift +T ##Opens a new shell in the same interface

gnome-terminal ##shell run command (can be used when shortcut editing it)

3. Set the shortcut key for shell opening

gnome-control-center #Open System Settings Center (just like opening Settings)

[keyboard]--->

[shorcuts]-->

[custom shortcuts]

--> Select + --> Enter shortcut key name to name (custom)--Enter [gnome-terminal] to command

4. Close shell

Ctrl+D ##Shortcuts to close shell

exit ##Close shell

4 How do I get into virtual machines?

1. Through the mouse operation, first start to open the project, at the beginning of view can view the project

2. Operate by command (note that the virtual interface of desktop is opened) Open shell and enter command

[kiosk@foundation0 Desktop]$rht-vmctl start desktop ##Open virtual machine

[Kiosk@foundation0 Desktop]$rht-vmctl view desktop##Show virtual machines

[kiosk@foundation0 Desktop]$rht-vmctl poweroff desktop##Shut down virtual machines

[kiosk@foundation0 Desktop]$rht-vmctl reset desktop##Reset the virtual machine, when the virtual machine has any problems that cannot be solved, use this command to restore

[kiosk@foundation0 Desktop] Meaning of each 2-part representation:

1. [kiosk]: Who is running the shell

2. [@]:br/> Who is running the shell

2. [@]:

3. [3]Desktop

4. VM user login (graphical text interface)

Page logins are divided into super users and normal users, the difference is that certain permissions may be restricted

5. Virtual machine logout

graphical interface gnome-session-quit --force

Text Interface Exit Ctrl+D

Note: Using the mouse in the virtual machine text interface will be captured by the virtual machine. Press [ctrl+alt] to release the mouse into the real operating system.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 273

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report