• Recognize the command line
Line prompt
Open a shell, where Kios represents the user name of the open shell; @ is the delimiter: Foundation is the name of the host used by the user; $ is the identity prompt, $ represents a normal user, #表示超级用户.
Note: Commands are only written after the line prompt to be executed by the system.
Turn on the virtual machine
The RHT-VMCTL represents the Redhat-virtual machine control, which is the very name of the VM. Start-Open the virtual machine, view-displays the virtual machine, poweroff-shuts down the virtual machine.
[[email protected] desktop]$ rht-vmctl start Desktop # # #开启desktop虚拟机
Error:desktop not started (is already running) # # #报错, Desktop is already running
[email protected] desktop]$ rht-vmctl view Desktop # # #显示desktop
[email protected] desktop]$ rht-vmctl poweroff Desktop # # #关闭dekstop
Powering off desktop.
Two • Basic operation of the command line
Switching between users
Switch between the normal user and the super user.
Help with Commands
(1) whatis+ command
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A6/47/wKioL1nMGc3zTim2AABgok-S_Hw863.png-wh_500x0-wm_ 3-wmp_4-s_1209416844.png "title=" screenshot from 2017-09-28 00-32-40.png "alt=" Wkiol1nmgc3ztim2aabgok-s_ Hw863.png-wh_50 "/>
(2)--help
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/07/96/wKiom1nMGifi6hayAAG6ZhS3TEY259.png-wh_500x0-wm_ 3-wmp_4-s_378498949.png "title=" screenshot from 2017-09-28 00-33-30.png "alt=" Wkiom1nmgifi6hayaag6zhs3tey259.png-wh _50 "/>
3. How to use the system
(1) Open the shell
3) Start bash
Applications>utilities>terminal
right mouse button----->open in terminal
Gnome-terminal
Ctrl+shift+n # #在新窗口中打开shell
ctrl+shift+t # #同一个窗口中打开新的tab
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/07/96/wKiom1nMGmmTuc9EAABeyyTUGlM156.png-wh_500x0-wm_ 3-wmp_4-s_2998882195.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-36-07.png "alt=" Wkiom1nmgmmtuc9eaabeyytuglm156.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/A6/47/wKioL1nMGirCZ8RzAABTNkTOwhs108.png-wh_500x0-wm_ 3-wmp_4-s_3561797496.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-36-19.png "alt=" Wkiol1nmgircz8rzaabtnktowhs108.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/07/96/wKiom1nMGmnB31XtAAA-uRZqt3o518.png-wh_500x0-wm_ 3-wmp_4-s_1909091192.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-38-04.png "alt=" Wkiom1nmgmnb31xtaaa-urzqt3o518.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/A6/47/wKioL1nMGirT3TfOAAA9undfE7w109.png-wh_500x0-wm_ 3-wmp_4-s_3331033990.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-38-16.png "alt=" Wkiol1nmgirt3tfoaaa9undfe7w109.png-wh_50 "/>
Exit: Exit | Ctrl+d
(2) Shutdown and restart of the system
There are three ways to restart and shut down your system in the shell: Reboot/poweroff init 6/init 0 shut down-r/shutdown-h
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/07/96/wKiom1nMGovjVEFUAADUGT4zSxQ254.png-wh_500x0-wm_ 3-wmp_4-s_579132004.png "title=" screenshot from 2017-09-28 00-47-22.png "alt=" Wkiom1nmgovjvefuaadugt4zsxq254.png-wh _50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/A6/47/wKioL1nMGnuyEflaAABzJhvd5pY110.png-wh_500x0-wm_ 3-wmp_4-s_2458429662.png "title=" screenshot from 2017-09-28 00-47-54.png "alt=" Wkiol1nmgnuyeflaaabzjhvd5py110.png-wh_50 "/>
(5) Lock screen
Ctrl + Alt +l # #在rhel7.0
win key + L # #在rhel7.2
4. Simple system commands
(1) Watch
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/07/96/wKiom1nMGwPx4OkLAAA2OWyBRag783.png-wh_500x0-wm_ 3-wmp_4-s_3652060912.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-49-29-Replica-copy (2)-copy-copy. png "alt= "Wkiom1nmgwpx4oklaaa2owybrag783.png-wh_50"/>
(3) Date
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/07/96/wKiom1nMGwTSQfbKAAA0ep7FHc0938.png-wh_500x0-wm_ 3-wmp_4-s_1918791210.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-51-00.png "alt=" Wkiom1nmgwtsqfbkaaa0ep7fhc0938.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/07/96/wKiom1nMG5LBqtYGAAAmbQ0GzAU452.png-wh_500x0-wm_ 3-wmp_4-s_403451515.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-54-27.png "alt=" Wkiom1nmg5lbqtygaaambq0gzau452.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/A6/47/wKioL1nMG1PT__jMAAA2TUvqrWA128.png-wh_500x0-wm_ 3-wmp_4-s_1915479102.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-52-08.png "alt=" wKioL1nMG1PT__ Jmaaa2tuvqrwa128.png-wh_50 "/>
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/A6/47/wKioL1nMG1ORs3jqAABUtV_EYAM656.png-wh_500x0-wm_ 3-wmp_4-s_3387420766.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-53-20.png "alt=" Wkiol1nmg1ors3jqaabutv_eyam656.png-wh_50 "/>
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/07/96/wKiom1nMG5PQkevEAAAjZRtnezQ694.png-wh_500x0-wm_ 3-wmp_4-s_1738252350.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-54-16.png "alt=" Wkiom1nmg5pqkeveaaajzrtnezq694.png-wh_50 "/>
(3) passwd
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/A6/47/wKioL1nMEIuhDWWIAABDGzW_KbY167.png-wh_500x0-wm_ 3-wmp_4-s_2538605556.png "title=" screenshot from 2017-09-28 01-08-19.png "alt=" Wkiol1nmea6t51giaab-ehapqea258.png-wh_50 "style=" float:left; "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/A6/47/wKioL1nMG5OTFxvKAABfXZKEVEs836.png-wh_500x0-wm_ 3-wmp_4-s_3509340851.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-55-13.png "alt=" Wkiol1nmg5otfxvkaabfxzkeves836.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/07/96/wKiom1nMG9PiXYmYAABjNEaLlho921.png-wh_500x0-wm_ 3-wmp_4-s_77927748.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-57-23.png "alt=" Wkiom1nmg9pixymyaabjneallho921.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/A6/47/wKioL1nMG5PyEBLgAABDgBNRYHw949.png-wh_500x0-wm_ 3-wmp_4-s_1724260132.png "style=" Float:none; "title=" screenshot from 2017-09-28 00-59-02.png "alt=" Wkiol1nmg5pyeblgaabdgbnryhw949.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/07/96/wKiom1nMG9OhDvAkAAAvUtPG8zY665.png-wh_500x0-wm_ 3-wmp_4-s_2383097532.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-02-50.png "alt=" Wkiom1nmg9ohdvakaaavutpg8zy665.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/A6/47/wKioL1nMG5SSFwssAAA_9LByo20971.png-wh_500x0-wm_ 3-wmp_4-s_2099811401.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-04-15.png "alt=" Wkiol1nmg5ssfwssaaa_9lbyo20971.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/07/96/wKiom1nMG9SBdHWAAAA0CNCTVrI946.png-wh_500x0-wm_ 3-wmp_4-s_2146136207.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-06-43.png "alt=" Wkiom1nmg9sbdhwaaaa0cnctvri946.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/07/96/wKiom1nMG9TQP-dSAABAcRv2J10565.png-wh_500x0-wm_ 3-wmp_4-s_1630330506.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-07-03.png "alt=" Wkiom1nmg9tqp-dsaabacrv2j10565.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/A6/47/wKioL1nMG5TDxMCYAABDGzW_KbY534.png-wh_500x0-wm_ 3-wmp_4-s_1820315850.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-08-19.png "alt=" Wkiol1nmg5tdxmcyaabdgzw_kby534.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/07/96/wKiom1nMG9TAF4xkAABFCaLzrEs225.png-wh_500x0-wm_ 3-wmp_4-s_1911070613.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-09-28.png "alt=" Wkiom1nmg9taf4xkaabfcalzres225.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A6/47/wKioL1nMG5XhM1ubAAAs-mJV57s910.png-wh_500x0-wm_ 3-wmp_4-s_438991722.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-10-55.png "alt=" Wkiol1nmg5xhm1ubaaas-mjv57s910.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/07/96/wKiom1nMG9Sw4_J-AAAwUW8-vYU328.png-wh_500x0-wm_ 3-wmp_4-s_2211789193.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-11-06.png "alt=" wKiom1nMG9Sw4_ J-aaawuw8-vyu328.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A6/47/wKioL1nMG5XBZTlPAAA1G-ctf7w761.png-wh_500x0-wm_ 3-wmp_4-s_2103367178.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-12-29.png "alt=" Wkiol1nmg5xbztlpaaa1g-ctf7w761.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/A6/47/wKioL1nMG5WjWh1-AAApNLLvFrs539.png-wh_500x0-wm_ 3-wmp_4-s_384312943.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-13-06.png "alt=" Wkiol1nmg5wjwh1-aaapnllvfrs539.png-wh_50 "/>
4) file-View File types
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/07/96/wKiom1nMHJeirh2FAAArt0ncmeQ259.png-wh_500x0-wm_ 3-wmp_4-s_880585765.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-15-22.png "alt=" Wkiom1nmhjeirh2faaart0ncmeq259.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/A6/47/wKioL1nMHFiRwK-EAAArSkQwTJ4449.png-wh_500x0-wm_ 3-wmp_4-s_1947646515.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-15-31.png "alt=" Wkiol1nmhfirwk-eaaarskqwtj4449.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/A6/47/wKioL1nMHFjyBcV9AAAsW5Mwjig874.png-wh_500x0-wm_ 3-wmp_4-s_1666926811.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-15-39.png "alt=" Wkiol1nmhfjybcv9aaasw5mwjig874.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/07/96/wKiom1nMHJjDq6izAAAdhB_85cM999.png-wh_500x0-wm_ 3-wmp_4-s_1376235476.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-16-50.png "alt=" Wkiom1nmhjjdq6izaaadhb_85cm999.png-wh_50 "/>
(5) Cat
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/07/96/wKiom1nMHJiChvBPAAAsTAauxik197.png-wh_500x0-wm_ 3-wmp_4-s_4100505569.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-17-02.png "alt=" Wkiom1nmhjichvbpaaastaauxik197.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/A6/47/wKioL1nMHFnzTZGXAAATwGFMErs891.png-wh_500x0-wm_ 3-wmp_4-s_29668717.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-17-59-replicas-replicas-replicas-replicas-replicas-replicas-replicas -copy. png "alt=" wkiol1nmhfnztzgxaaatwgfmers891.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/A6/47/wKioL1nMHSTAXUmvAAAiLKPvK8g612.png-wh_500x0-wm_ 3-wmp_4-s_3497499180.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-18-25.png "alt=" Wkiol1nmhstaxumvaaailkpvk8g612.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/07/96/wKiom1nMHWSgX_7NAAAof-z78es486.png-wh_500x0-wm_ 3-wmp_4-s_3294611130.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-19-01.png "alt=" wKiom1nMHWSgX_ 7naaaof-z78es486.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/07/96/wKiom1nMHWTyemvgAAAmsguAXRM952.png-wh_500x0-wm_ 3-wmp_4-s_97330099.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-20-54.png "alt=" Wkiom1nmhwtyemvgaaamsguaxrm952.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/A6/47/wKioL1nMHSXhsOZeAAAoi4YX4aM272.png-wh_500x0-wm_ 3-wmp_4-s_528482756.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-21-23.png "alt=" Wkiol1nmhsxhsozeaaaoi4yx4am272.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/A6/47/wKioL1nMHSXhNf4SAAAoRtVkta8431.png-wh_500x0-wm_ 3-wmp_4-s_2983904735.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-22-13.png "alt=" Wkiol1nmhsxhnf4saaaortvkta8431.png-wh_50 "/>
(6) WC
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/07/96/wKiom1nMHc6zEbShAAAmj4oKzuU936.png-wh_500x0-wm_ 3-wmp_4-s_687510431.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-24-40.png "alt=" Wkiom1nmhc6zebshaaamj4okzuu936.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/A6/47/wKioL1nMHY7TjtiWAAAnqntEkwY150.png-wh_500x0-wm_ 3-wmp_4-s_135320286.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-25-12.png "alt=" Wkiol1nmhy7tjtiwaaanqntekwy150.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/A6/47/wKioL1nMHY7TdZEkAAAnPFM67uY468.png-wh_500x0-wm_ 3-wmp_4-s_1405453061.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-25-53.png "alt=" Wkiol1nmhy7tdzekaaanpfm67uy468.png-wh_50 "/>
(7) tab
(8) Usage of history
Linux shortcut key 650) this.width=650; "Src=" Https://s4.51cto.com/wyfs02/M01/07/96/wKiom1nMGJCQaPqCAAAWzrKarM4978.png-wh_ 500x0-wm_3-wmp_4-s_1058619182.png "title=" screenshot from 2017-09-28 01-36-42.png "style=" float:left; "alt=" Wkiom1nmgjcqapqcaaawzrkarm4978.png-wh_50 "/>
around # #一个字符一个字符移动
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/07/96/wKiom1nMHkvh_DXQAACCY90X_3s784.png-wh_500x0-wm_ 3-wmp_4-s_169482846.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-27-51.png "alt=" WKiom1nMHkvh_ Dxqaaccy90x_3s784.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/A6/47/wKioL1nMHgugbMuPAAA1zq9q4B8213.png-wh_500x0-wm_ 3-wmp_4-s_590257826.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-29-22.png "alt=" Wkiol1nmhgugbmupaaa1zq9q4b8213.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/A6/47/wKioL1nMHgvh4yCNAAArkVF7Y2g760.png-wh_500x0-wm_ 3-wmp_4-s_1891204912.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-30-12-copy. png "alt=" Wkiol1nmhgvh4ycnaaarkvf7y2g760.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/07/96/wKiom1nMHkvQ5yt0AAArkVF7Y2g623.png-wh_500x0-wm_ 3-wmp_4-s_2610311395.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-30-12.png "alt=" Wkiom1nmhkvq5yt0aaarkvf7y2g623.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/07/96/wKiom1nMHkuSZHjVAAAiiEpykTY973.png-wh_500x0-wm_ 3-wmp_4-s_2884415028.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-31-53.png "alt=" Wkiom1nmhkuszhjvaaaiiepykty973.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/A6/47/wKioL1nMHgyjjx_SAAAh_oc_Vm4841.png-wh_500x0-wm_ 3-wmp_4-s_2088733679.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-32-03.png "alt=" wKioL1nMHgyjjx_ Saaah_oc_vm4841.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/07/96/wKiom1nMHkzS5PxjAACCY90X_3s576.png-wh_500x0-wm_ 3-wmp_4-s_2781965171.png "style=" Float:none; "title=" screenshot from 2017-09-28 01-27-51-copy. png "alt=" Wkiom1nmhkzs5pxjaaccy90x_3s576.png-wh_50 "/>
Ctrl + around # #一个字一个字移动
Ctrl + A # #光标移动到行首
+ e # #光标移动到行尾
+ u # #光标所在位置删除到行首
+ k # #光标所在位置删除到行尾
+ r+ Keywords # #调出最近一条含有关键字的命令
+ C # #撤销以输入的命令
+ D # #关闭当前环境
+ L # #清空屏幕
+ SHIFT + C # #复制
+ SHIFT + V # #粘贴
+ SHIFT + t # #在现有shell中重新打开一个table
+ SHIFT + N # #在shell中打开一个新的shell
+ SHIFT + Pageup|pagedown # #切换table
+ ALT + L # # Lock Screen
+ ALT + top | down # #切换工作界面
+ ALT + F1|f7 # #进入图形界面
+ ALT + F2-f6 # #进入虚拟控制台
First knowledge of Linux