2024年4月16日发(作者:)
No.1
Meraminorsecurityincidentyouareinstructedbyyourleadsys-admintoverifytheRPMsinstalledonarunning
command
I'IoiIIcreateacompletereportthatyoucan
ana~ze
forchangesthatmaybesecurity-
related?
A.
,pm
-Va"report
B.
,pm
-Qavy"report
c.
,pm
-Vqt-nomd5"report
D.
,pm
-checkfiles"report
E.
,pm
-Va-nofiles"report
ch23
-V : 後面加的是軟體名稱,若該軟體所含的檔案被更動過,才會列出來
-Va : 列出目前系統上面所有可能被更動過的檔案
-qa: 列出所有的,已安裝在本基Linux系統上面的所有軟體名稱 (無-Q, y 參數 )
-v: 查看細部安裝資訊畫面
Answer:
A
--nomd5 :不要檢查 rpm 套件的 MD5 資訊。
--nofiles :Don't verify any attributes of package files.
No.2
VVhatRPMcommandwouldshowyoudetailedinformationforapackagecalledopenssh-3.6.i386rpm?
A.
rpm-shol'loinformationopenssh-3.6.i386rpm
B.
rpm-showdetails-packageopenssh-36i386rpm"
C.
rpm-query-info-packageopenssh-3.6.i386rpm""
D.
rpm-verifyopenssh-36i386rpm
Answer:
-p :查詢指定的套件檔。搭配-i時最有用 (這邊的i和安裝模式的i不同).p59
ex.若想知道"某rpm檔"(查詢對象)所含的軟體之"供應者"(查詢內容),表示你必須使用
-p選項指出所要查詢的套件檔,用i選項表示想知道該套件檔的資訊。
c
No.3
Youarethesystemadministratorforaconsultingfirml'IIhereseveralpeopleuseLinuxastheirdesktopoperating
system
OneofyourusershasinstalledacommercialpublishingprogramthatworksunderX
onavarietyofUNIXandLinux
platforms
Theusermadeaseriesofconfigurationchangesregardingtheinitiall'loindowsize,locationandcolor
Now,
heishavingdifficultyundoingthesechangesandisaskingforyourhelpInl'IIhichfilewouldyouthinkyouwould
mostlike~
findtheconfigurationsettingsyouareseekingtochange?
A.
-/.xinitrc
B.
-/.xconfig
C.
-/Xdefaults
xinitrc : 啟動X Client的檔案。xinitrc會將很多其他的檔案參數引進來 p24-10
xresource:
E.
/etc/X11/XF86Config
控制X應用程式與其讓每一個應用程式都建置一個專屬的設定工具,不如讓應用程式去檢查使
用者個人目錄下的組態內容。對於每一項設定好的資源,在.Xresources檔案裡都有一列對應
的紀錄。
Answer:
D.
-/XF86Config
c
No.4
Xdefaults:
如果把資源檔中每一行都烤貝到 home 目錄中的 .Xdefaults 檔中,就永遠不須要再去設定
xclock的視窗的型態了!這種解釋雖然沒講到所有的功用,但也點出了重點。在這個檔案中,
可以塞入 X中所有程式的。而且只要小心處理,當想要微調一部份時,還是很容易辦得到
YouarehavingproblemsI'IoithaparticularfontandyouwanttoseeifitsdirectoryisincludedinXF86ConfigVVhich
sectioncontainsthisinformation?
A.
Paths
B.
Fonts
c.
D.
Files
Graphics
Answer:
在XF86Config檔案中的"File"段落中,以FontPath指定你
自己的字型路徑。
c
No.5
VVhichRPMcommandI'IoiIIoutputthenameofthepackagel'IIhichinstallsthefile/etc/exports?
A.
,pm
-F/etc/exports
B.
,pm
-qf/etc/exports
c.
,pm
-KI/etc/exports
D.
,pm
-qp/etc/exports
E.
,pm
-qi/etc/exports
Answer:
p58.
查詢模式:
rpm -q
:可讓你檢查已安裝的狀態,以及關於原始套件黨的資訊。查詢模式的選項分成兩組
,一組用於選擇查詢的對象(個別檔案,套件檔,資料庫,..),另一組決定查詢內容(你
想知道的資訊)
-f: 查詢特定檔案所屬的套件
B
No.6
MermodifyingL1LO'sconfigurationfile,l'IIhatcommandshouldyourunforthechangestotakeeffect?
A.
killHUP'pidoflila'
B.
liloinstall
C.
lilo
D.
reboot
Answer:
c
No.7
MermodifyingGRUB'sconfigurationfile,l'IIhatcommandshouldyourunforthechangestotakeeffect?
A.
killHUP'pidofgrub'
B.
grubinstall
C.
grub
D.
noactionisrequired
Answer:
o
No.8
InGRUB'sconfigurationfileyoufindthelineroot(hd1,4)
VVhatiscorrespondingdevicenameonaLinuxsystem?
A.
Idevfhda4
B.
Idevfhda5
c.
D.
Idevfhdb4
Idevfhdb5
ex.
(fd0) :第一台軟碟
(hd0): 第一台硬碟
(hd0,1):第一台硬碟的第二個分割區
Answer:
o
No.9
VVhichconfigurationfileshouldbemodifiedtodisablethectrlaltdeletekeycombination?
A.
letclkeys
B.
Iproclkeys
C.
letc/inittab
D.
Iproc/inittab
E.
letc/reboot
p6-24
/proc :這個目錄本身是一個"虛擬檔案系統"它放置的資料都是在記憶體當中的,例如系統核心,
行程資訊,周邊裝置和網路狀態等等
/etc: 系統的主要設定檔幾乎都放置在這。如人員的帳密檔,各種服務的起始檔等等。
/etc/inittab
init 是在核心 mount 進 root 後,第一個執行的程式 (第一個 process),init 所負責的工作包括:
* 執行 /etc/rc.d/rc?.d/ 裡的 scripts
* 將系統由開機狀態 (boot-up state) 切換至多使用者狀態 (multiuser state)
* 負責載入 tty (本地端) 的 login shell
* 負責開機與關機的程序 (procedure)。
開機完成後,init 仍會保持在背景執行,並同時監視與修改系統執行狀態。init
監視許多系統的動作,適時改變系統的狀態,這些動作定義在 /etc/inittab 檔案裡
Answer:
c
No.10
ofthefollo"";ngcouldcausethis?
A.
Thesourcefileishidden
B.
Thesourcefileis
readon~
C.
Thesourcefileisashellscript
D.
Youdonotol'lmthesourcefile
p205
Hard link:
硬連結和原檔之間只是只是以不同的名稱分居於不同的目錄下
的登錄項而已,他們指向同一個inode,具有相同的檔案內容
E.
Thesourceandthetargetareondifferentfilesystems
Answer:
E
Hardlink有兩項嚴格的限制:
1.原檔與hardlink必須居於同一個檔案系統
nk不能指向目錄
No.11
Youhavereadfvl,ouldhappenifyouranrm
foo?
A.
fooandbarwouldbothberemoved
B.
foowouldberemovedl'IIhilebarwouldremainaccessible
C.
ldstillexistbutwouldbeunusable
D.
Bothfooandbarwouldremainaccessible
E.
Youwouldbeaskedl'IIhetherbarshouldberemoved
Answer:
B
No.12
You"";shtokillaprocess"";thaPIOof123Selectthecommandl'IIhich"";lIallowtheprocessto"cleanup"before
exiting
A.
kill1123
B.
kill9123
c.
D.
kill15123
kill17123
-1: 重新讀取一次參數的設定檔(類似reload)
-9: 立刻強制刪除一個工作
-15:以正常的程序的方式終止一項工作。(預設值)
-17:相當於用鍵盤輸入ctrl+z來暫停一個執行
Answer:
c
No.13
VVhatisthedefaultprocesspriorityl'IIhenaprocessisstartedusingthenicecommand?
A.
10
B.
10
C.
20
NI:Nice的簡寫,與priority有關,越小越早被執行。 (-20 ~ 19)
process的預設值是0
nice 不給值的話,預設值為10
man.
D.0
Answer:
B
No.14
YouareformattingasingleharddiskforaLinuxinstallVVhatisthemaximumnumberofprimarypartitionsyoucan
create?
Answer:
4four
Linux支援多種分割格式,但預設使用MS-DOS格式(非msdos檔案系統),
這種格式容許你將磁碟最多畫分四個primary partition,或是三個primary partion
加一個extended partition
No.15
InordertoappendtheoutputofIstoafilecalledbaIl,l'IIhichofthefollo"";ngcommandlineswouldyouuse?
A.
Is
>
baIl
B.
Is
>&
baIl
c.
D.
Is
&>
baIl
Is»baIl
> :覆蓋
>> :附加
Answer:
o
发布评论