Linux實(shí)驗(yàn)上機(jī)報(bào)告_第1頁
Linux實(shí)驗(yàn)上機(jī)報(bào)告_第2頁
Linux實(shí)驗(yàn)上機(jī)報(bào)告_第3頁
已閱讀5頁,還剩22頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、Linux操作系統(tǒng)實(shí)驗(yàn)實(shí)驗(yàn)實(shí)驗(yàn)內(nèi)容:1、完成Vimtutor教程第二遍。2、用vi完成一個(gè)簡單的c語言程序,盡可能多的用 vi中的各種命令。用gcc編譯,并執(zhí)行 該程序。屈 jidrrghanggfjianghdngge-VB: #|include<stdio. h> void main)printf ( HHello Linux ! n,f);-o Linux丄 a?:ghangcfc!tt j Aanyrii;ngye-VH:vi Hllo . cjianghAnggej 1 anghingge-vaigcc Hello.c. langhangce 0 jianghangge-

2、 VB:La -_意用金1遼-rwiirwxr-x 1 -rw-iw-rw-丄 -i'X- 1".<-T;V- 1 -rw- r工 1 -rwxrwxr-M 1 -rw-rw-r- 1 -rwxrwxrx 1 -rw-rw-r1 diwxrwxrwK 2 -rw-rw-rw- 1 drwxr-xr-x 2 -rw-rw-r1j 1 :;:Lgliatig:.je j ianghanggej langtiangge j i.an;jticinqe jianghangge j Iangl'Langge i ianghangqe j j. in hanqqe j ia

3、nghangqs j i in2ftianq£ j ianghangs jianghangge j i anqhanqe j l.anqhanqcie j iTxghangge jianghangge 1ianghnqge j ianghanggeiangharigge j i ,ing?i.ngge jlTlghang l±zi zfhang j i.anghang j i.anghange j i anghangge 1 ianqhangzfe 1丄三nzjh日nq je j i anghangge j j. anghangge 1 i nqhnmqe jianghan

4、gge j i anghangge j1anqhnqqp j ianghngge jjianghangge jianqhangge6 60060£08 90S600 fiO 0600 8686 409250 409653 4096 他石4095 ,;4096 409月月月 月冃月月月月11 1 1 1 1 o 1 111-1 9 111 1-11凋冃月冃月冃月1 9 g 97 9 923 18:721 22*2321 22iL46 IS:4523 1815121 15:3J24 13;248 08:332- 21:3E21 21;526 18:4IS Q9;076 186 10:76

5、 18t4H8 22:11& 17:34108 0S:27da tai-sor teJ aatal- txt 亡xaiDR丄已s . desktc _Hello cLinLixzip, . odt£令枝劃汁rr哉1苛 公命模視圖文下音桌jianghanggejianghangge-VB:/Linux3、學(xué)會編寫根本的 makefile文件,使用 makefile和make工具做一個(gè)復(fù)雜一點(diǎn)的c語言程序選做實(shí)驗(yàn)總結(jié):通過課后在網(wǎng)上的學(xué)習(xí),能夠熟練的用vi編寫簡單的c語言程序,并且能用 gcc成功編譯出來結(jié)果,vim是一款非常好用的文本編輯應(yīng)用。實(shí)驗(yàn)三內(nèi)容:1、運(yùn)行Is-I命令,

6、掌握輸出各列的意義。j i.anghangge i i anqhanaqe -VE ; Ls -1 意庫生124rwxrwxr-x L rw-rw-rw- 1 rw-EW-rw- 1 rw-rr 1 rwxrwxr-x L rw-xw-r1 rwxj7wl;-x 1 rw-rw-r 1 drwxrwxr-x 2 drvxrwxrwx 2 dcwxrwjLx-x 2 rw-rw-rw- 1 drwxr-xr-x 2 =irw rw- t L drwKT-xu簽 2 drwxr-Krx 2 drwxr-xr-x 2 drwxr-xr-x 2 drwr-xx-x 2 drwxr-KX-x 3 drw

7、xr-xr-x 3j ianghangge j ± anghanqge j ianghangge j ianghanqge j ianghangge 1 ianghariqqe jiiangha 口 gcjE j ianghiangge j ianghangge Ji anghangge jinghangge j ianghangge j iangtiangge j1曰口ghangge jianghanqqe jianghangge 1 ianqlhanqge j ianghangge jicLnghangge jiianghsnqge j ianghanggej ia nghang

8、ge j ± anghangg j ianghang'ge j ienghangqe j ienghangge j ± anghanggI J-cLnqhaniqe j isnghangej ienghangge jianghangge jianghangge j ianghangge j ianglhangge jianghangge j ianqhanqqe j i a nghangge 1ienqhangqej ianghangge j ianqhanqFqe 1i&nghangyej ianqhanggF:S6Q06060 0900 seoa6C e

9、eoo S66c 4056 409e 40S258 4096096409r40r40<?c409E40&t月月月 月月月月月月月月 I rd 丄月-,一二 O -二 1月1 1L 1 JL l 1 Jx UL Q-月 月OJ月月月月月月OJ1 9 Q- 9 9 9 9 12 321216232124 a2421242 I6181B : 4 7 22:23 22:04 18:45 is : 51 19:33 13:2 oe:3316 : 4221 ;36 1:44 21:52 18:47 D5:07 18:4718:7 1B:47 22:11 17:3datal sorted da

10、t a1 txt examples .desktopHello cLiriu耳筆記odttme斗令檢頰片檔載樂面 tlitr罔2-二一棗2、運(yùn)行umask,了解掩碼的設(shè)置。3、 熟悉目錄的操作命令cd、mkdir、 rmdir等,刪除文件的命令rm1ianghanggeSiianghanqge-VB:umesk0002jianghanggejianghangge VB:$ cd Testqlanghanggylanghanqge-VB:/Test$ 1s -1 總用量4-rw-rw-r- 1 jianghangge j ianghangge 20 11 月 21 21:38 test j ia

11、nghanggeij j ianghangge-VB: /Test$ cat testLinux .s very good * f argn;3ragged?砂j xanghanggej ianghangge-VB:mkdiz Junglej ianghangge j ianhange-VB:1j 1 總用R 120-rwxrwxrx 1 -rw-rwrw- 1 -rw-rw-rw- 1 -rw-r一r- 1 -rwxrwxr-x 1 -rw-rw-r- 1 drwxrwxr-x 2 -rwxrwxr-x 二 -rw-rw-r- 1 J.lwxlxlwx 2 -rw-rw-rw- 1 drwx

12、i-xr-x 2 -rw- rw-r一 1 drwxr-xr-x 2 drwxr-xr-x 2 dtwxr-itr- 2 dtwxr-xr-x 2 drwjir-xr-x 2 drwsr-xr-x 3 drwxrxr-x 3j ianghangge j ianghangge j ianghangqe _ i i : ir. 1 r ; _: j j i Anhangc j ianghangge j iAnghanggc j ianghanggc jlangbangge jianghangge j ianghangge j ianheinge jlanghangge j latighangge

13、j 丄iitigtiaiigge J latighange j latigbangge jlanj 丄且口 hancre jiangh口gg仔jianghangge 9600 jianghangge 60 jianghanqge 60 jianghangge B99Q jianghangg 8600 j ianghangge £0 iAnghanggo jianghanage 6 C j0 jlanghangge 8686 jLanqhangge 4096 j iangha/iGgs 256j ianghEinGge 405C j ianghangge b3 一丄anghsnqge

14、4Ut _ ranghangge 4 09b 2isnghangg 4D9t j ianqhancge 4 09t jlanqhancqGjiangha.ELgg已 4096 j ingha.ngge 409j ianghanggej ianghangge-VB:rmdir Junglejisnghangge®Jlanghangge-VB:13 -1 總用雖116-rwxrwxr-2« 1-riw-rw-rw- 1 -rw-rr1 -rwirwxr-x 1 -rw-rw-r1 -rwxrwxr-x 1 -rw-rw-r 1 drwxrwxrwx 2 -rw-rwrw- 1

15、Irwxr-xr-x 2 -rw-rw-r1 <irwxr-xr-x 2 drwxr-xr-x 2 drwxr-xr-x 2 dHw莖r-xr-x 2 drwxr-Kr-x 2 drwxr-xr-x 3 drwxr-xr-x 3j iaiighaiigge j ieanghcinggti j ianghangge j ianghangge j ianghangge jlanghangge jianghangge j ianqhangge j ianghangge j iaLTiqhangge j ianghangqe j ianghangge j ianghangg jianghangg

16、e jlanghangge j ianghangge j ianghangge- j ianqhangge j ianqhangqej ianghangge j isngha.ngge j i anghangge jlanghangge ji 1 angharigg e ji langhangge jiianghangge j issnqhangge ji ianghangge j ianghangge j ianghanqge ji ianghangge j ianghangge j isn-jhariziTzre ji ianghangge 1 1 三二! :-hz; n=Tz z jla

17、nghangge j ianghangge 1ianghngge86006060 9990 860060 6600 66B 40 9625840 9653 409o 4096 40% 4 0 96 40眺 4 0 96 40963 1 1 6 3 1 d- 4 s 1 1 8 6 6 6 6 0 8 8_2 2 2 2 2 2 2 2 2 1鬥耳月丨冃鬥月用月月月丨月 月 1/月苗仃1J1JOJ1JM 月UJ月月月月月月0>IL T± T± QI- -L- -1 ml- Ti -T-4 1I CT pI 一 9 CTl 1I一18 22i23 22:Q4 18145

18、1 6r51 19i33 130 13124 08: 3J 21: 3& 21152 LB 09:07 16:47 ie:471. B:47 1.817 22 :11 1 : J< Q6;27O. «datal.sorted datal.txt xamplQa.desktopHello * cJungle一丄:丄x莖i己.udL的共令板顏片襠裁.樂面 舍佈模規(guī)圉文下音桌月月月冃月月月月月月111 eh- 1 1 1 o 1 11 1 1 9 1 1 1 1 1 1H 月 月月月月月月月二 _y QI- rty Ay 9113 1 1 fe 3 1 4 8 1 1 6 8

19、 8 8 82 2 2 2 2 2 2 2 118:4722:23?2:0410i4b 1C :bl 15:33 13:24 06;33 2113821:5210t4709:07 IB t4716:4716:4715; 4722;1117:3408:27ddtaI santG-d 日曰t曰1 txt exanipl&a . Zoj_H*= 1_ 丄 oHello * cLi nu£ 筆* odt的瓦令|<幀匕檔i-<才向 公豊必文下*.j ianghanggeCjlAnghangge VB:touch l2 j nghan qe j j. angha nq

20、1; -VB: $ Is -1 總用暈11-rwxrwxr-x 1 rw-匚w-rw-1= rw-rw-rw= 1 rwrr 1 -rwxrwxr-x 1 xwrwr1 -rwxrwxr-x 1 -rw- rw- r1 -rw-rw-r1 -rw-rw-r- 1 d rwx rwx rwx 2 -rw-rw-rw- 1 drwxr-xr-x 2 -xw-rw-r- 1 drwxr-scrx 2 drwxr-xr-x 2 drwxr-xr-x 2 drwxr-xrx 2 drwxrxrx 2 drwscr-xr-x 3 drwxr-xr-x 3jiaimgrhangqe jianghangg已

21、jianghangge nianghangge j ianghangqe jianghangqe j_L 且口 ghangge jiang'haiiigge jianghangge j丄 anghangge j jl anqhanqqe jianghangge jlanghangg j 丄 eu.ighat:i/QQ jianghangge jianghangge jianghangge jianghan9g& ji口n號hong甘晝 jiangharigge j 1 anghaLnqgjiingh Tnggp jingharigge jiangharigge i an 口 h

22、 a. n gge jianghangge jianghangge j ianqhaJiigigCi lianghan ggi jianghangge jianghangge jianghangg jlanghanggiQ j langhdiigge jiaii.yliaj*gyQ jianghangge jianghangge jianghange jianghangge jionghan.gq« )ianghanggp 1 ianqhanggi06006060 89B0 S600EC aeo:i 36B60 0 4096 25S 409653 4096 4096 4096 409

23、6 4096 409 4096月冃冃 月冃冃月.HM月月1 _n± 1 EJ 1 1 1- o 1 Tx 1 1 1119 11冃 冃0;月月月月月月"199999911 anghanggeis jianghangge-VB: rm t.1 j ianghangge® jlanghaiiggs - VBi rm t2 ianghanggt-®JluiLghHnggfe VB: la 1-t?- Hlffl 11 -rwxrwxr x 1 -上w-irf-rw- 1 -rw-rw-rw- 1 -rw-r一r 1 -rwxrwxr-x 1 -rw rw-r

24、- 1 -rwxrwxr-x 1 -rw-rw-r- 1 drwxrwxrwx 2 -rw-rv-rv- 1 drwxr-xr-x 2 -rw-rw-r- 1 drwxr-xr-x 2 drwxr-xr-K 2. drwxr Kr x 2 drwxr-xr-x 2 drwyr-xr-x 2 drwxr-xr-x 3 tirwcr-xr-x 3j ianghangqe j ianghangga jlanghangge j ianghangge j ianghangge j ianghanqga j ianghanggs j ianghangge j ianghangge j ianghangge

25、 j i*nghanqg<i j ianghangge j ianghangg j ianghangqe j ianghanqgc j ianghngg jlanghangge j ionghangge j ianghangqej ianghange j ianghanggt j ianghangge j ianhangga j ianqhangge j ianqhanqge j ianghangge j ianghangge j ianghangge j ifinghangc j ianghanggc j ianghangge jianghangge j ianqhanqge j ia

26、nghanggo j ianghangge j ianghangge j ianghangge j ianqhanqge8600600 8960 860060 860Q ' 6 : 6 A096250 409534096A096£096409640964096IL- 二-Ti.H月月冃1 1 1 EZ月陰月月月月月月佔(zhàn)919-999 0.- 913-116 3142 2 2 2 2 2102222 ia:452304ia:5i 19333 3111-523212121213 3a4 4 32:11192222IB18081921211010101322dF3.ta 1 * s

27、ortfiJ dita 1 t exniTiC les x d-aktopHsllo,cLin ii H.Linuxg: id. Ddt tlt2鵝令慣甌片忖豐W tii-2-命模視寓文下音桌:47 :23 :04:45:51:33124:33:39t52 :47107:47:47:47:47 :11:27datal . 301. td daral* txtexflip Lt .desktopllello * cLin.odu就兵令恢煩/-杓敦樂面 tlj公諭核規(guī)圏文下音聲4、用vi生成一個(gè)10行實(shí)驗(yàn)文件datal,內(nèi)容自己定。將實(shí)驗(yàn)文件用輸出到datal.sorted。用重定向完成 >

28、>sort命令排序,把結(jié)果辭 jianghariggejianghangge'VB: * lanana apple pearorange almondcore fig hawlemon longang jionghunnfjianglhflHggB-VB;I J±anghangge0 j lang hang ge-VB: j ianghngge0 j ianghang號e曹B: ,J ianghangge® j ianghangge- VB :vi data!匕ntsoit datal . t?;t > datal» sorted cst da

29、tal» sorteda lrnond apple bananaccxefig haw lemon lonqn orange pear j 丄anghatige j iiinghamggeVB:實(shí)驗(yàn)總結(jié):Is -l命令是一個(gè)非常好用的命令,屢次使用它可以查看自己是否實(shí)驗(yàn)成功。Mkdir用于創(chuàng)立文件夾,而 touch適用于創(chuàng)立文件。同理,rmdir用來刪除文件夾,rm用來刪除文 件。輸出重定向方式分為 >'和 >>'兩種。shell遇到 >操作符,會判斷右邊文件是 否存在,如果存在就先刪除,并且創(chuàng)立新文件。不存在直接創(chuàng)立?!?>>操作

30、符,判斷右邊文件,如果不存在,先創(chuàng)立。以添加方式翻開文件。實(shí)驗(yàn)四實(shí)驗(yàn)內(nèi)容:1、 用root用戶進(jìn)入系統(tǒng)以后,建立一個(gè)普通帳號,并且設(shè)置密碼。ctrl+d退出當(dāng)前登錄。2、用普通用戶進(jìn)入系統(tǒng)。3、 在自己的主目錄下面建立一個(gè)文件夾test,進(jìn)入這個(gè)文件夾。-rw-rx一-1rootrootL亦9-rw-r匸1junglejungle69F03junglejungle4Q9Gdrwxrw?:3junglejungle4096-rwrw=x-1pmql rjungle14241629-T輝_x和_匸.1jURTfl f?jungle1431H5F8drwxrwscr-K2Junqljungle409

31、6-111耳4月jungle0jianghngge-VB:cd test junglesjianghangge-VB:Is 克用U 136j ianghanggeBjianghangge-VB;sq jungle 帝碼;j unglegj ianghangge-VB J/home/j ianghangg&f ianghane-v :Is總用捷279fA冃冃冃月冃111111111122202229.22?.22322 14 configbk2022 esEniplea d召3K*cqp21:22 manl21:3 'H i ."21;LS tarl 七厲匸-I -.2

32、1i 14 ' j r . )r.:-rwrw-r lrwzrwxrwx JI .F A -1 J .jungle jungle jungle jungle j ingl * junglejungle j ungle jungle jungle ungl4 jungle1 < ?r388181 612£322523225292 2 2 2 2 32 2 2 2 2 2 月冃月冃月鬥iq2019202022:4B tarl*help:2 tar2:49 tar2 . Inslp:37 tarJ +helpr 37 tar4:22-> tar3»help22

33、:22 test4、運(yùn)行命令 man tar > tarl.help,運(yùn)行命令復(fù)制 tarl.help 到同一目錄下面的tar2.help。分別用cat ,tac, more, less ,head ,tail查看tar2.help,比擬這幾個(gè)命令的區(qū)別。NAM£tar - The GNU version of the tar archiving utilitySYNOPSIStr L- A -catenate -concatenate | c -create | d 一一diff 一一cortpare | 一一delete | r 一一append | t 一一list I

34、一一cest-latel I u 一一updat迂 I x 一一extract 一一get options pattinanie *DESCRIPTIONTar stores and extract;s files from a tape or disk ar - chive*f'jnction; either the long function pLef-LxeLi wiLti s ingle-letterThe first argujient to tar should be a one of the letters Acdrtux, or one ofiidEies<A u

35、ncLiun Letter need 匚ut be' r, 占nd my be combined vi th othereftioms A long function name must be prefixed with -* Come options tke a parameter; with the single letter form these must be given as separate argunLent* With ttip Long farnr they may bp giv=n V)y apppndl ng =va 1 up to the option.jung

36、le®jianghangge-VB:tac tar2,helpNov 0, 2022匚口mpletely describ已 all features of the prograrn extracted from ttie usage text in tne source* Tt. may not West of the text in this document was autontically include anyfrom that document in this man page invariant cover texts, which inakes it impossilD

37、lw to ment describing 七彳匚 i3 Licensed under t:hE GFDL Tifith Info docuineiiLs inLead. UnfortLiridLely,r the info docu" Tha gnu Tolks inIr abhor mzn pages, and createBUGSThe tar command appeared in Version 7 HT&T UNIX HISTORYtar (b)f symlink(7), rmt(8)SEE ALSOtar -xf archive t咼工Extract all f

38、iles from archive,tar,t:ar -tvr arcliive.tarList all files in archive.tar verbosely.tar -cf archive.tar foo barCreate archive tar from files foo and bar.EXAMPLESNAMEtar The GNU version of the tar archiving utilitySYNOPSIStar - A -catenate -ccncatenate | c -create | d 一一diff -compare | 一一delctG | r 一

39、一append | t 一一list I 一一testlab巳L | u 一一update | x 一一extract 一一get options 1 pa七junglej ianghangge-VB:-/test$ tail tar2 helpThe GNU folks, in general abhor man pages, and create info docmrLAnts instead. UDfoftunatq丄y the info docu - ment describing tar is licensed under the GFDL with invariant cover

40、texts, which makes it impossible to include any text from that document in this man page Most of the text in this document was automatically extracted from the usage text in the source. It may not completely describe all featuTES of thE program.Nov 04, 2022jungle3;iarghanggeVE:七巳more tar2helpTAR(1)B

41、SD General Conunands MdnualTAR(1)NAMEtar The GNU version of th© tar archiving utilitySYNOPSIStar 一 A -catenate 一一concatenate I c -create | d-dift -compare | -delete | r -append | t -List I -test-label I u 一一updaI x -extract -qet options patlnnamp *.DESCRIPTIONTar stores and extracts files from

42、a tape cr disk archive-witherThe first argument to ta匚 should be a function;one of the Letters Acdrtux, or one of tr:e long runction naine5- A function letter need 且ot be prefixed with '"一詛y be cortbin&d with othr single-iGtGr options * A long funation name mu31 toe prefixed with 一一 sme

43、 options tal<e a parameter; witfi th旦 SLngl&-l&tt&r fthese ntius* be qiven as separat巳 白remnents With the long form, they may be given tiy appending =value to the option.TA1< NAMEtat The GNU vex3ion of the tar archiving- utilitySYNOPSIStr - A -catenate -concatenate I c -create I d

44、-cLiff * -compare | - -delete | r -append | t -list -tHstl-ldbel u -update I x -sxlracL -qet 1opt ionsJ pathnaneI FT TCNTar stores and extracts file froni a tap« or disk ar * ctiive*The first argument, to tar should be a one of th& letters Acdrtux, or one of names, A function 1電need not be-

45、1 f ancl may be cambinel with otherfunction; either the _ong function prefixed with5 tnqLe-l&t't&roptions. A Long function name must be prefixed with -. optiontaZe a prampter; with th® single-letter form thcse must be given &s separato argumcnt呂.theLll«With long form, they

46、may be givan by appending -va1ue to cpLion FUNCTICNLETTERSHa in operation mode:-A; catenate, -concatenateappend tar files to an archive運(yùn)行 man gzip >> tar2,比擬 > 和 >> 的區(qū)別。1 unale j J1 andha豁g?電-VH sman 口zip »jungle#ianghangg電¥0占 Is -1 咸用査27968-xw-r-r一一 1 root root 三r-上一一 t三三 1

47、 jtmgJ電 iiingLe drwx rwxT-x 3 jungl* jungl>4096drvMrwxr-x 3 jianglm jungle4Q號百-T'M-irw t 1 jungle jung 1 e 124L29 -xw-rw-r一一 JL jungle Jungle 14 -xw-rw-r 1 jiungle jungLei17(41drwKrwxr-x 2 jurvgle 呵4096jungle Jianigha-VBiG&1F(1)L1M2222; 14confLgbakq月202022examp丄皂:?a desktopLL月Z221s22m4nl1

48、1月2221:23ntan111月222L; 1Btarl.tar »hz2丄丄月Z221:14tarl.targ昱UH251: 40tar211冃2322i22t瞬鬥t&enerail JoniniandB ManuailGSlEdJiNAMRgzi.p -unzip t scat:coaqpireps or expand,SYNOPSISgzip -iiflTilclLnl'irtWl? ) -rsimcablel -S suffix hm色)gunsip | -acfliklLnirrtw -5 auf fis name .- -fhLV | name IDE8

49、CFIPTIONSip eazh file ia refzlsc&d. by access and modi 11 Nation times«Fcdnjcc.s t?pQpif郭f 1 Xq? ajeing ILsmpQ 1 -S iv cod-in (1*371 * tfh.ancivsF pcssilDlQroriE wi.t.hi the extensio-n 亠9疋# while keeping th.t seune- 口imu匸hip modesf (Ths detault eMtenaldn is -gs £or VMSi 2 lex MSDOSf OS

50、/2 FAT, na fllA 通t色 ip#clfl*dr fir it 咅 £11« 總*方庖 1a "-"p the atftndard output Qzip uill orly atte-i&pt to eenpree# ignore /rabolla llnka.NT FAT aid Amid Ifinputto tbefiles In partioularf It will運(yùn)行 cat tarl.help tar2.help > tar3.help,然后運(yùn)行命令比擬 tarl.help tar2.help tar3.help

51、的大小,掌握合并多個(gè)文件的方法。heLp tar2.help > tarB.hejung 1 e jianghdngge-VB: “/七est$ Is總用量104 -rw-rw-rI -rw-rw-r1 -rw-rw-r 1 -rw-rw-r- 1Junglejungle junrjlp jungle jungle jungle :口阿1£161263B81S1612632252月月月月22 19:48 tar1.help22 20:26 tar222 L9i49 tar2.hslp22 20:37 tar3 * hslp5、運(yùn)行命令獲得當(dāng)前權(quán)限掩碼,然后根據(jù)權(quán)限掩碼算一下 多

52、少,具體權(quán)限是什么?ls-1驗(yàn)證一下。tarl的權(quán)限值8進(jìn)制應(yīng)該是juTigle(Jj i anghanggeVE;14111?k0002jungle®jianghangge-VB:-s 1 總用星27968-rw-rw-r-drwxrwxr-xrootroot1964911月2222:14junglej ungle89&04月20201junglejungle409C月2221:22j utiLej unqle409t11月2221:23junglej ungle1424162"月2221:16j unglej unle1434958811B2221;14j un

53、.g Lej ungle40:96月2322:22-rw-r-r- -rw-r-r- drwxrwxr-x d 上kjcl wxt x12133configbak examplc;i .desktop manlttm.2tar1.tar bz2tarl* tar * gt testjunqlelanghanqqe-VB:cat tarl Ip6、運(yùn)行命令了解/usr/share/man/所占空間。junglej ianghangge-VB:/nsr/share/man$ du -sh26M把/usr/share/man/ 用tar打包,并且用 gzip壓縮;把/usr/share/man/ 用

54、tar打包,并且用bzip2壓縮。比擬兩者的壓縮比。把兩個(gè)壓縮包分別解壓到當(dāng)前目錄下面的man1和man2下面提示,要先建目錄。bzip2比gzip壓縮比高。進(jìn)入兩個(gè)解壓后的目錄,了解目錄結(jié)構(gòu)。思考如果不把 /usr/share目錄結(jié)構(gòu)帶進(jìn)壓縮包應(yīng)該如何處理。此項(xiàng)內(nèi)容可以課后完成輸入命令:tar -zcvf /usr/jungle/tarl.tar.gz-C/usr/jungle/man1/usr/shareman。即可-XW-EE1TiMtroot1984911月11口nqlejungleB98Q曲月drwxrwxi-K3junglejungle4096:月drwxrwxr-x3j an 口

55、丄©junql©4096-rw-rw-r1j cmglejungle143416S4口月-zw-inf-r-1jULDgldjungle1434986JA月i7w- rw- r_1jjjngl*jungle1784111月drwxrtfxx -k2j unglejungle409CLLjungleS j ianghangge-VB;Is -1 總用H 279352316:40二衛(wèi):2222:142 3 6 4c&nfigbakexampl&3 曲 desktcpraanlman2tar2查看manl :j unglej ranghangge-VB:cd manl/U3r/share/manjungleGj ianghangge-VB;/man

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論