- m- 1/4 BA.I THI MON LINUX Thai gian: 50' (Khong tinh thai gian phMd~) HQva ten: Installation 1. Nhfrng ngu6n 1uutm nao khong th€ duQ'csu d\mg d€ cMd~t RHEL: @UIa m~m b) UIa Clmg c) Chi dung CD ho~c DVD d) M,:mg 2. Trong nhfrng thu m\lc sau, thu m\lc nao b~t bUQcphai n&mtrong phan vung chua /, khong th€ n&mtren phan vung khac: Va) letc b) Ivar c) swap @/boot 3. Trong cac phat bi€u sau, phMbi€u nao chinh xac nh~t: a) Phan vung swap b~t bUQcphili co d€ Linux dung lam nai trao d<3ibQnh6 @Phan vung swap nen co dung 1m;mg1~ han ho~c b&ng1uQ'llgRAM h~th6ng V c) Phanvungswapkhongco h~thongvanho~tdQngduQ'c . d) Khong th€ co nhi~u han hai phan vling swap tren Mth6ng Managing Devices 4. Trong nhfrng l~nh sau, l~nhnao co th€ cho bi€t t~t ca cac <3Clmgv~t 1ydang duQ'csu d\mg trong h~th6ng: Va) df $du c) dd , d) diskuse 5. May tinh co hai <3Clmg1aIDE 100GB, SCSI 20GB va dil cai d~t RHEL. K€t 1u~nnao trong cac k€t 1u~nsau 1adung nh~t: a) GRUB phai cai tren MBR cua <3IDE thi m6i khai dQngduQ'ch~th6ng ~ GRUB phai cai tren MBR cua <3SCSI thi m6i khai dQngduQ'cM th6ng c) GRUB I?haicai tren ~oot Sector cua 1 trong 2 <3thi m6i khai uQngduQ'ch~th6ng Ca ba ket 1u~ntren deu sai 6.6 SCSI thu hai cua h~ th6ng duQ'cphan thanh nam phan vung, hai phan vung chinh va ba phan vung con n&mtrong phan vung ma rQng.Khi do phan vung con cu6i cung se duQ'canh x~ thanh di€m k€t n6i nao trong Mth6ng file: @dev/sdb5 b) Idev/sdb6 r - J ~ -\)}-~ . V c) Idev/sdb7 f'lOxt U~~ C~l ~c,J ~ m- 2/4 d) Idev/sdb8 The Linux FileSystem 7. L~nh nao trong nhUng l~nh sau day dUng d~ ki~m tra va sua l6i logic cua h~ th6ng file trong RHEL: a) seandisk b) ekfs ~filecheek V@Vfsek 8. Sau khi dll anh x~ (mount) di~m k~t n6i eua mQtthi~t bi luu tm ngoai tu Idev/sdal vao thu ml)e co ten la Imedialusb, l~nh nao trong cae l~nh sau se huy b6 anh x~ ngay l~p tile bAtk~ ngu eanh hi~n t~i eua h~ th6ng: Va) reboot b) umount Idev/sdal 5lumount Idev/sdal/medialusb 1- @umount Imedialusb 9. Dinh d~ng file eua phan vimg swap luan la: a) ext3 b) ext2 ~ vfat V~swap 1o. L~nhnao trong cae l~nh duai day dung d~format phan vung trong RHEL: f1@ fdisk vb) mke2fs c) fsek d) format 11. D~ xae dinh cae diSm kSt n6i dang tfm t~i trong h~ th6ng, co thS su dl)ng l~nh nao trong cae l~ duai day: va) df b) du ~fdisk X Wproe/mount 12. Trong cae quy€n truy xuAtfile sau, quy€n nao eho phep mQtngwJi dung bAtky th\Ie thi file co quy€n truy xuAtnay: ~ @O777 b) 1666 c) 2666 Vd)4555 The Command Line 13. Thil tv nao dung trong vi~e th\Ie hi~n lai gQil~nhtrong shell bash: a) shell se tim trong duang d~nPATH va thi hanh l~nh d~utien tim thAy - m- 3/4 r . ! 'fJc12Yshellsetimtrongthu m\lchi~nhfmhtruac r6i mai timtrongduemgd~~BATH c) shell se chi tim trong thu m\lc hi~nhfmh d) shell se tim trong cac duang d~nPATH truac r6i mai tim trong thu m\lc hi~n hfmh 14. Chuang trinh hello d~t t~i thu m\lc /usrlbin khi thi hanh se in ra thi€t bi xuAtchufu1dong chfr "Hello". L~nh nao trong cac l~nh sau ch~c ch~n se t~o file export.txt co nQidung la dong chfr"Hello": ~ @/usrlbinlhello : export.txt b) /usrlbinlhello» export.txt c) /usrlbinlhello < export.txt d) /usrlbinlhello 1>export.txt 15. Oiai thich ynghla cua l~nh sau: cat » file name « end of file: """';;':" '\"""\."""""""'" "/1' ";""';""""""'" ~ :""":'::"'" :. '';.J.?i'"'''''''' l.~: t ~.tXJ ~ ~ u.~ ~ ~Q C."""f'~""~""'~"""" ~ ~ ~d , t~ ~~ ~o;,~ 1,j':l.cl ~ """"""""""""""""""""""" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . File Management 16. Hay chQnl~nhcho phep thay d6i quy€n sa hfru file: lC@chroot b) chage c) newgrp vd) chgrp 17. Trong cac c~pbi~u diSn quy€ntroy c~p file d~ng s6 va chfr sau day, c~p nao tuang duang nhau: .~ ~ £ t a)',(i)644jra IWir-;r-x; ~"-~ b) 4655 va rwsr-xr-t v~2755 va,l'W?5[-§f-x ~11755 va fWx(-xr-x 18. File inputdat co mQt lien k€t m€m (tuang d6i) la input.txt t~i cling thu m\lc /home/data. L~nh sao chep sau: cp input.* /root se cho k€t qua nhu nao? ~a) T~o 2 file mai rieng bi~t nhau co ten la inputdat va inputtxt trong thu m\lc /root NQi dung cua 2 file nay tuang duang nhau va la nQidung cua file inputdat cu. ~ Chi sao chep file inputdat, kh6ng sao chep lien k€t m€m la inputtxt j ) Sa~ chep file inputdal binh thuem&,t~o 1 lien k€t m€m trong /root co ten la inputtxt, len ket nay tro tai file inputdat ban dau (/home/data/inputdat) d) Sao chep file inputdat binh thuemg, t~o 1 lien k€t m€m trong /root co ten la inputtxt, lien k€t nay tro tai file inputdat mai chep (/rootlinputdat) ~ T~' \)II t< \1' . Process Management 19. f)~ huy bo ti€n trinh thu 3 dang ch~y trong h~u truemg, cAnphai dung l~nh nao: @ kill -9 $3 b) kill -9#3 c) kill -9 3 rn- 4/4 vd) kill -9 %3 20. U€ theo d5i du<;ychinh anh d~y du vS tinh tr~ng cac tiSn trinh va tai nguyen CPU, RAM cuaMth6ng dn sIrd\lng l~nh nao: . va) top b) ps ~stree d) jobs Software Installation 21. Trong cac thu tv vS quy t~cd~t ten cac g6i RPM sau, quy t~c nao dUng: @name-version-release b) release-name-version c) name-release-version d) version-name-release 22. Gia sIr h~ th6ng s~p du<;yccai them g6i ph~n mSm c6 ten file la mypragramc;l.O.l.rpm, trong cac Iva ch9n sau, Iva ch9n nao cho biSt chinh xac cac t~p tin se du<;ycghi them/c~p nh~t sau khi da cai d~t g6i nay: fJ @rpm -Uvh mypragram-1.0.1.rpm ,JJ) rpm -ql myprogram-l.O.l.rpm ~) rpm -qpl myprogram-1.0.1.rpm d) rpm -ivh myprogram-l.O.l.rpm; Managing Groups and Users 23. Trang cac l~nh sau, l~nh nao dung d€ chuy€n ngmJi dung hi~n thai tir nh6m hi~n hanh nay sang nh6m hien hanh khac: f; @raup~dd '-7 ~0 (\.~(-\: t'i\C'-h~ b) groups C (cu) £I!\. \\\~ 9. ~ ~ ~ vc))'newgrp ~ \j-R~ iv~,- 1L-~~" ~CN,-q ,'-~~ -=¥ dJ ch grp ~ '"'/ . /"" ~ 'lv~ C~\!'~~ cud: NrLo~ . 24. File /etc/passwd dung d€ luu cac thong tin vS ngmJi dung theo cac dong, m6i dong la mQt t~p cac thong tin vS 1nguai dung cach nhau bai 1 d~u hai ch~m, trang d6 thong tin thu 3 t~i m6i ~ ' g la: a roup ID . ser passwd ~f, " r c) user home directory Vd) user ID 25. Trang mQth~ th6ng c6 sIr d\lng chuc nang ch6ng an trQmm~t khAuda ma h6a cua ngmJi dung, m~t khAuse du<;yeluu t~i: a) /ete/passwd @>/ete/shadow e) /ete/userpasswd d) fete/password . MBR cua <3IDE thi m6i khai dQngduQ'ch~th6ng ~ GRUB phai cai tren MBR cua <3SCSI thi m6i khai dQngduQ'cM th6ng c) GRUB I?haicai tren ~oot Sector cua 1 trong 2 < 3thi m6i khai uQngduQ'ch~th6ng Ca. - m- 1/4 BA.I THI MON LINUX Thai gian: 50' (Khong tinh thai gian phMd~) HQva ten: Installation 1. Nhfrng ngu6n. xuAtfile sau, quy€n nao eho phep mQtngwJi dung bAtky thIe thi file co quy€n truy xuAtnay: ~ @O777 b) 1666 c) 2666 Vd)4555 The Command Line 13. Thil tv nao dung trong vi~e thIe hi~n lai gQil~nhtrong