中文字幕亚洲第一精品|精品国产免费一区二区|久久婷婷五月六月综合版|中文字幕熟妇久久久人妻|久久综合精品国产一区无码|国产成人精品永久免费视频|午夜亚洲国产精品理论片a级|久久精品一区二区三区无码护土

 訪問手機(jī)版  

Linux常用命令|Linux培訓(xùn)學(xué)習(xí)|考試認(rèn)證|工資待遇與招聘,認(rèn)準(zhǔn)超級(jí)網(wǎng)工!

招聘|合作 登陸|注冊(cè)

網(wǎng)絡(luò)工程師培訓(xùn)

當(dāng)前位置:網(wǎng)絡(luò)工程師 > 技術(shù)課程 > linux > 熱點(diǎn)關(guān)注 > linux常用命令

Linux基本命令(一)

時(shí)間:2019-08-01

linux常用命令_常用linux命令_linux常用shell命令

####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