virtual machine control
[kiosk@foundation0 Desktop]$ rht-vmctl start desktop ##Open the virtual machine
[kiosk@foundation0 Desktop]$ rht-vmctl view desktop ##Display virtual machine
[kiosk@foundation0 Desktop]$ rht-vmctl poweroff desktop #Turn off the virtual machine
[kiosk@foundation0 Desktop]$ rht-vmctl reset desktop ##Reset the virtual machine
·Notice
[kiosk@foundation0 Desktop]$ rht-vmctl start desktop
Error: desktop not started (is already running) #The virtual machine is running
[kiosk@foundation0 Desktop]$ rht-vmctl view desktop
Error: unable to view desktop - not currently running. #The virtual machine is not running
[kiosk@foundation0 Desktop]$ rht-vmct1 start desktop
bash: rht-vmct1: command not found... #Command input error
[kiosk@foundation0 Desktop]$ rht-vmctl stat desktop
Error: bad option, stat #Parameter writing error
[kiosk@foundation0 Desktop]$ rht-vmctl start deskop
Error: unrecognized VMNAME specified, deskop. #VM name error
1. How to connect to the vnc class interface
application -----> internet ----> tigerVNCviewer
2. Chinese input method
application ------> setting ---> 蓝旗(region&language)---->china pinyin
3. Text editing
gedit file name & ## "&" is used to make the gedit command run in the background without occupying the current interface
4. System user login
There are two levels of system users:1. Ordinary user, this user can only use the system, but the power is relatively low, such as can not delete home---->computer---->boot
student ----> student
2. Super user, system administrator, has absolute power and can destroy the system, such as flash number home---->computer---->boot
not list ---->root ----->redhat
·Notice
After deleting the boot, select reset in the system, then the system starts successfully
The system cannot be started and the virtual machine can be reset directly
Linux shell
1. What is Linux?
1.linux refers to the linux kernel
2. The operating system we are talking about is the kernel of linux + the software GNU/linux of the GNU organization
2. What is a shell?
1. The shell is an interpreter
2. The shell is software that protects the system kernel from being tampered with
3. The default shell in the system we are using is bash
directory
3. How to execute commands in the shell
3. Command + space + parameter + space + object
command is the program
parameter is a function specified by the program -a -b -c=-abc=-bac The
object is the target of the operation
4. The meaning of the line prompt
[kiosk@foundation0 Desktop]$
kiosk #Indicates who is running the shell
foundation0 #The host name of the host to open the shell
Desktop #The name of the folder where you are currently
$ #What level is your user identity, $ indicates ordinary user, #Super user
4. File management commands
1. Create a new file: touch file
2. Create a new directory: mkdir test
3. Delete a file: rm -f file ## -f is the abbreviation of force, which means that there is no prompt for forced deletion
4. Delete directory: rm -f -r directory## -r means recursion, which is the directory itself and all the contents in it
: rm -fr directory
5. View file content: cat file
6. Write file: vim file Enter browse mode
: press "i" key to enter insert mode to start writing characters
: write After finishing, press "ESC" to exit insert mode
: Press ":wq" to save and exit, the file writing is complete
7. Copy: cp file new file name|directory
: cp -r dir new name|directory
8. Move: mv file directory
: mv dir directory
: mv directory/* , move all contents in the directory to the current system location "." represents the current system directory
5. System structure
/bin #Common system commands
/sbin #System management commands
/boot #Boot partition
/sys #Kernel parameter adjustment
/dev #Device file
/lib #32-bit library file
/lib64 #64 library file
/media /run /mnt #Temporary device Mount point
/opt #third-party software installation location
/proc #system information
/etc #system configuration directory
/home #common user home directory
/root #Super user home directory
/var,/srv #System data
6. Commands about the path
Absolute path: a shorthand for a file relative to the current system location, he usually automatically adds the value of "pwd" before the name Relative path: a shorthand for a file name relative to the current system location, he usually automatically adds "pwd" the value before the name
2. Related command
pwd##print work directory Display the path of the current system location
touch /mnt/file ##Create a file file in /mnt/
with an absolute path rm -fr /mnt/file ##Delete /mnt/ with an absolute path The file file in
mv hello /mnt ##Move the current hello file to the /mnt directory
mv /mnt/hello. ##Move the hello file in /mnt to the current location in absolute path representation 3. Switch the working directory
cd directory name
cd .. ##Enter the upper directory of the current directory
cd - ##Enter the directory where the current directory was before
4 Display of
.files ls
ls -a ##Show all files including hidden files starting with a dot
ls -R##Recursively display all contents in a directory
basic command
whatis command
whatis cal ##Display the purpose of the cal command
cal (1) - display a calendar
2. When you know the purpose of the command, but don't know the running format or method of the
command Command --help ##Get help for the command --help only applies to the command
cal --help
useage:
cal [options][ [ [day] month] year]
[Optional] ##Can be added or not
... ##The number of additions can be any number
<must be added> ##Indispensable information
man
##Command
2 ##The interface called by the kernel
3 ##Function library
4 ##Special files such as device files
5 ##System files
6 ##Game
7 ##Package information
8 ##System password
9 ##Kernel rules
man 5 passwd ##View the help manual of the /etc/passwd file After
entering the man page
pageup #Page up pagedown #Page down /keyword #Search keyword n #Keyword Match down N #keyword match up q #exit