####1、虛擬機(jī)控制####
[kiosk@foundation0 Desktop]$ rht-vmctl start desktop ##開啟desktop虛擬機(jī)
Error: desktop not started (is already running) ##報(bào)錯(cuò),desktop已經(jīng)運(yùn)行
[kiosk@foundation0 Desktop]$ rht-vmctl view desktop ##顯示desktop
[kiosk@foundation0 Desktop]$ rht-vmctl poweroff desktop ##關(guān)閉dekstop
Powering off desktop..
[kiosk@foundation0 Desktop]$ rht-vmctl start desktop ##開啟desktop
Starting desktop.
[kiosk@foundation0 Desktop]$ rht-vmctl view desktop
[kiosk@foundation0 Desktop]$ rht-vmctl poweroff desktop
Powering off desktop..
[kiosk@foundation0 Desktop]$ rht-vmctl view desktop
Error: unable to view desktop - not currently running. ##虛擬機(jī)沒開啟無法顯示
[kiosk@foundation0 Desktop]$ rht-vmctl reset desktop ##當(dāng)虛擬機(jī)出現(xiàn)故障,reset表示重置
Are you sure you want to reset desktop? (y/n) y ##詢問是否重置y表示yes
Resetting desktop. ##正在重置
Powering off desktop...
####2、系統(tǒng)登錄####
##圖形化界面登錄##
##文本登錄##
####3、虛擬控制臺(tái)切換####
Ctrl+Alt+F(1|7)%20 ##進(jìn)入圖形
Ctrl+Alt+F(2~6)%20 ##進(jìn)入虛擬控制臺(tái)
####4、用戶級(jí)別####
##普通用戶登陸
zxc普通用戶,密碼zxcvbnm
##超級(jí)用戶登陸
->not%20listed%20 ##點(diǎn)擊未列出
username%20 ##提示輸入用戶名稱
->root%20 ##root為系統(tǒng)超級(jí)用戶
passwd%20 ##提示輸入密碼
->redhat%20 ##redhat是超級(jí)用戶密碼
####5、用戶切換####
[zxc@localhost%20~]$%20su%20-%20root ##切換root用戶
Password:%20 ##輸入密碼,密碼不顯示
[root@localhost%20~] ##切換成功
##高級(jí)用戶切換到低級(jí)用戶不需要密碼,低級(jí)用戶切換到高級(jí)或者平級(jí)用戶的切換需要密碼
gnome-session-quit%20--force%20 ##注銷用戶%20--force強(qiáng)制注銷,不詢問
####6、date命令####
[zxc@localhost%20~]$%20date ##輸出當(dāng)前時(shí)間 Sun%20Dec%2024%2008:36:43%20EST%202017 [root@localhost%20~]#%20date%201111111111 ##設(shè)置系統(tǒng)時(shí)間 Fri%20Nov%2011%2011:11:00%20EST%202011 [root@localhost%20~]#%20date%20-d%2056day%20 ##56天之后的日期 Fri%20Jan%20%206%2011:11:41%20EST%202012 [root@localhost%20~]#%20date%20+%Y%20 ##按照年輸出 2011 [root@localhost%20~]#%20date%20+%Y/%m/%d ##按照格式輸出 2011/11/11
上一個(gè)教程:實(shí)驗(yàn)一 Linux基本命令
下一個(gè)教程:linux好用的命令