溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

unit1--unit3單元文檔

發(fā)布時(shí)間:2020-07-11 02:04:40 來源:網(wǎng)絡(luò) 閱讀:367 作者:鐵騎傳說 欄目:移動(dòng)開發(fā)

Unit 1

1)#1虛擬機(jī)的控制

在真機(jī)模式下打開bash,

[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

[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表示yesunit1--unit3單元文檔

unit1--unit3單元文檔

unit1--unit3單元文檔


    #2真機(jī)命令

[kiosk@foundation0 Desktop]$

kiosk    ##打開shell的用戶

@      ##分隔符

foundation0  ##主機(jī)名稱

Desktop    ##工作目錄名稱

$       ##身份提示符,#表示超級(jí)用戶,$表示普通用戶

注意:命令要在行提示符之后輸入才能執(zhí)行

[kiosk@foundation0 Desktop]$ su - username*  ##切換用戶

高級(jí)用戶接換到低級(jí)用戶不需要密碼,低級(jí)切換高級(jí)或平級(jí)不需要密碼

   #3虛擬控制臺(tái)

Ctrl+Alt+F(1|7)  ##進(jìn)入圖形

Ctrl+Alt+F(2-6)   ##進(jìn)入虛擬控制臺(tái)

passwd:      ##密碼輸入不會(huì)顯示

    #4命令的執(zhí)行

命令格式   命令 參數(shù) 目標(biāo)

ctrl +c    ##撤銷命令的執(zhí)行

-參數(shù)      ##單詞縮寫

--參數(shù)     ##單詞全拼

   #5命令的幫助

whatis   ##查看命令功能

命令 -help   ##查看命令幫助

[]  ##選擇加入得內(nèi)容可加可不加

...  ##加入的內(nèi)容個(gè)數(shù)任意

<>      ##內(nèi)容在命令執(zhí)行過程中必須要加


2)進(jìn)入虛擬機(jī)

#1登錄界面

普通用戶登陸

student 普通用戶,密碼student

超級(jí)用戶登錄

not listed

點(diǎn)擊未列出

username提示輸入用戶名稱

->rootroot為系統(tǒng)超級(jí)用戶

passwd提示輸入密碼

->redhatredhat是超級(jí)用戶密碼

#2語言調(diào)整

Applications----->system tools---->settings ----->Region & language --->language 

打開命令行---> reboot     ##重啟

#3系統(tǒng)的使用

1.Applications>Utilities>Terminal       ##開始bosh

2.鼠標(biāo)右鍵----->open in terminal

3.gnome-terminal

4.ctrl+shift+n                ##在新窗口打開一個(gè)shell

5.ctrl+shift+t                ##同一窗口打開新的tab

6.exit/ctrl +d                 ##退出

7.reboot                    ##重啟

8.poweroff                  ##關(guān)機(jī)

9.ctrl + alt +l              ##在rhe17.0中

10.win+l                  ##rhe17.2中

11.date watch -n 1 date ###讓date命令每秒執(zhí)行一次,ctrl +c 推出監(jiān)控模式

12.date 11181115###把系統(tǒng)時(shí)間設(shè)定為11月18日11:15 格式:月月天天小時(shí)分鐘

13.date 111811152016.55   ##2016表示年(可以不加).55 表示秒(可以不加)

14.-d +xday -xday##查看x天前或者后的時(shí)間

15.+%....              ##設(shè)定date的輸出格式

#4密碼修改

1.[root@foundation0 ~]# passwd

Changing password for user root.   ##改變超級(jí)用戶密碼

New password              ##輸入新密碼

Retype new password         ##確認(rèn)密碼

2.[kiosk@foundation0 Desktop]$ passwd

Changing password for user kiosk.##改變普通用戶密碼

(current) UNIX password: ##輸入當(dāng)前密碼

passwd   參數(shù)    用戶名稱

-S  *      student##用戶密碼信息

-l  *     student##鎖定帳號(hào)

-u  *     student##解鎖

-n      1   student##設(shè)定密碼最短有效期

-x      30   student##設(shè)定密碼最長(zhǎng)有效期

-w      3   student##警告期

-i      2   student##設(shè)定用戶非活躍天數(shù)

-d  *     student##清除用戶密碼

unit1--unit3單元文檔

3.監(jiān)控passwd密碼信息

watch -n 1 passwd -S student


#5文件

touch file  ##建立文件

unit1--unit3單元文檔

1.文件的查看

catfilename  ##顯示文件的全部?jī)?nèi)容

lessfilename  ##分頁瀏覽,按“q”退出

headfilename  ##顯示一個(gè)文件的前幾行

head -n 5filename ##前五行

tailfilename  ##顯示文件后幾行

tail -n 5 filename  ##顯示一個(gè)文件的后5行

unit1--unit3單元文檔


2.wc統(tǒng)計(jì)文件容量信息

wc -l  ##行數(shù)

  -w   ##字?jǐn)?shù)

  -c  ##字節(jié)數(shù)

  -m  ##字符數(shù)

unit1--unit3單元文檔

#6Tab鍵

在系統(tǒng)中table鍵可以自動(dòng)補(bǔ)齊存在的命令,文件名稱和某些命令的參數(shù)

a+TAB x2  顯示系統(tǒng)中所有a開有的命令

#7歷史調(diào)用

history ##顯示歷史

unit1--unit3單元文檔

hostory -c ##清除當(dāng)前環(huán)境當(dāng)中的歷史命令

unit1--unit3單元文檔


!數(shù)字  ##執(zhí)行第多少行命令

!字母  ##執(zhí)行最近一條以這個(gè)字母開頭的命令

ctrl +R +關(guān)鍵字  ##執(zhí)行最近一條含有這個(gè)關(guān)鍵字的命令

上下鍵   ##逐行調(diào)用命令

#8linux中的快捷鍵

左右##一個(gè)字符一個(gè)字符移動(dòng)

ctrl +左右##一個(gè)字一個(gè)字移動(dòng)

ctrl + a     ##光標(biāo)移動(dòng)到行首

   + e     ##光標(biāo)移動(dòng)到行尾

   + u     ##光標(biāo)所在位置刪除到行首

   + k     ##光標(biāo)所在位置刪除到行尾

   + r+關(guān)鍵字##調(diào)出最近一條含有關(guān)鍵字的命令

   + c     ##撤銷以輸入的命令

   + d     ##關(guān)閉當(dāng)前環(huán)境

   + L##清空屏幕

   + shift + c##復(fù)制

   + shift + v##粘貼

   + shift + t ##在現(xiàn)有shell中重新打開一個(gè)table        

   + shift + n##在shell中打開一個(gè)新的shell

   + shift + pageup|pagedown ##切換table

   + alt + l      ## 鎖屏

   + alt +上|下    ##切換工作界面

   + alt + f1|f7   ##進(jìn)入圖形界面

   + alt + f2-f6   ##進(jìn)入虛擬控制臺(tái)  












向AI問一下細(xì)節(jié)
推薦閱讀:
  1. 刪除文檔
  2. python文檔

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI