Linux的简介与虚拟机的管理
Linux的簡介:
嚴格的來講,Linux不算是一個操作系統(tǒng),只是一個Linux系統(tǒng)中的內(nèi)核,Linux的全稱是GUN/Linux,這才算是一個真正意義上的Linux系統(tǒng)。
Linux是一個多用戶多任務(wù)的操作系統(tǒng),擁有良好的用戶界面,用戶通過shell與Linux內(nèi)核交互,shell是一個命令行解釋工具,它將用戶輸入的命令轉(zhuǎn)化為內(nèi)核能夠理解的命令。
虛擬機的管理:
rht-vmctl start desktop ##打開虛擬機
rht-vmctl view desktop ##顯示虛擬機
rht-vmctl poweroff desktop ##關(guān)閉虛擬機
poweroff (也可以直接關(guān)閉虛擬機)
rht-vmctl reset desktop ##重置虛擬機,(當虛擬機出現(xiàn)任何解決不了的問題時來用此命令還原)
可能出現(xiàn)的報錯:
rht-vmctl view desktop (輸入的命令)
Error: unable to view desktop - not currently running. (出現(xiàn)的報錯)
當虛擬機沒有開啟時不能直接顯示 ,可以用開啟虛擬機的方式解決
rht-vmctl start desktop (輸入的命令)
Error: desktop not started (is already running)ht-vmctl (出現(xiàn)的報錯)
當虛擬機已經(jīng)運行時不能再次運行
示例:
虛擬機信息 :
desktop
用戶 密碼
student student
root redhat
server
用戶 密碼
student student
root redhat
root登陸
notlist -----> root ----> redhat
示例:
什么是shell:
當前系統(tǒng)默認使用shell類型:
bash ##GUN Bourne again Shell
如何開啟shell
1.鼠標右鍵------>open in terminal
2.在shell已經(jīng)開啟一個的情況下
ctrl+shift+n ##開啟一個新的shell
ctrl+shift+t ##在同一個界面中開啟一個新的tab
gnome-terminal ##shell運行命令
3.關(guān)閉shell
ctrl +D ##關(guān)閉shell的快捷鍵
4.設(shè)定shell開啟的快捷鍵
gnome-control-center ##打開系統(tǒng)設(shè)置中心
[keyboard] ---- >[shortcuts] ------> [custom shortcuts] -----> 選擇+ —> 填入快捷鍵名稱到name選項----填入命令[gnome-terminal]到command中點擊disable輸入快捷鍵
示例:
設(shè)置快捷鍵開啟shell:

以上是生活随笔為你收集整理的Linux的简介与虚拟机的管理的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 自定义控件添加属性_|AutoCAD L
- 下一篇: linux下的文件系统,Linux根文件