1、西南交大Linux操作系统应用训练Linux 实验实验( 一) Linux 系统的基本使用 2实验( 二) 文件与目录操作 20实验( 三) 文件压缩和备份 . 28实验( 四) 文件系统管理与应用 . 36实验( 五) 设备管理 46实验( 六) 用户管理 49实验(一)Linux系统的基本使用学习目的1、 熟悉进入和退出 Linux的一般过程。2、 掌握Linux有关目录的命令及操作。3、 掌握绝对路径和相对路径的概念及表达方法。学习任务1、 在虚拟机环境下启动lin ux的步骤:Gldlll URrsinn H,!l:l Jnwr 严 57717fiK iipppr 心门卩)tert H
2、at Linux (Z.4.7H-8)IJsh Ihw 1 曲nil y kKys In 箕尸uh ir:li f*nf ry i囂 h jnl I iijliE pl|. Press outer to boot tho selected 0S4 cr to thecnmmnflji hefnre Imnt ingr Pn tn mnd ifyi thi= fcRrTiRl flrgnnRntn 丘邑 lmut iifiji . ur *12 fi n 匸ummanJ.-11 rit_Th liighli idlitAfl Rntry Mill Ihp hncrterl rirntHmiAt
3、jrn I Ijj in II Mrni5i-red hat.ictt ing Imstnoine InitialiEirg I ni t i a. I j g lug fo&iTittnf USB InltUI lElng I ni t. i n IInitial isiingl)K IQK 1DK JOK 1OK JUK iQK JQK II ata J hci st. I oca IdriMiiiin: control ler (eJhcihcd ): conirFDJ ler (usb-uhc i):mouse: Ifoixr syistcm appears to have shut
4、dmum Line LcanlyVess V ulthiin 1 seconds to force file system integrity ctiecJc Checking root fllesiystenH clMrij 1H2513/7HB2Z1 Pi 1*16312/111570 blocksUSDUSDf I lesyistem:USB HF5 lbterface:USII keyboardsUSDenMouni i n(j| root f i lesystemi i n read-wr i tc HiDdiE - cllMAtIng sutap pdfiHJonsu indlin
5、q module depeMchcies:Imking I i Icsystcmirbpot: recoverinq journ唱1讪口口七:clean41z2b1B4 filesj 1273H/1U43S1 hLocksKK Ku o oDuntino local f Heaystcin: nh) ing I nr a I f i lsytrm nab 1ing swep spcc :IH1T Entering run lew! 5h Leri my hoh-hi tercet lye stjrilUiip ;he:cklnw for neu hArdware_2、 以root用户登录系统,
6、需要输入 2项信息Rrel Hat Linux reIrasr 3 CShr jkcT Kerne 1 Z .4,Z0-B on an 1686localhcst logins root.寸Hat Linux release 9 (Shrike) B6Ju&Alhust Lug in: ryutPassword:Las-t Icq in: Hon fiuiq ZB 14 :fl3 :23 nm ttijZ TOU hdUB Mdl I I rIrmut.l*LuL41Jiu&t ruut111 I4、 需要再打开一个控制台,应该按什么键?然后仍以 root登录按Alt+F2打开第二个控制台Rr
7、rd Hnt I.inux re3 rlErjie Zr4,28-8 ch an I6B6local host login: _Rcrt Hut LiTiux Irasr ? CShrikc)1Kerne 1 Z4aZ0-B on an 1686localhoit oginE root_!ci Ht Liwx relcasff 9 (ShrikeJ1erne 1 Zi.EH-旧 on IEBGOCtl t hOt Idy I ii M.iuLast Io暫in: Hdh Aug ZjB 14 :3 or ttyZitqu. haw rrm 11 _(riuiJ LO lucrt I hut r
8、uut5、 察看当前目录是什么: 输入Is -al-rM-rr-ruulrumtZ1BZB0-rw-rw-r=-rootroot163361513T51Bf onlE.cacticlArux FOO troot11:59.gconfArwxrootroat4O9G291303.gconf d铀MXrciDtroot佃倔ze1L:25 gniOHKrcifitroot帕MR歸11527Irurx rootroot翊胎8MIS12:4E-gnrirne2 pr i va teiuxr-Kr-wruu 1rout血2011:2S_ y ihoine Jslk Lopirux rum Irout1H9
9、bSon1H12;5IlmiPSrfr-faixr xr-Mrnotrnntqim1R2H;13a sttrftflBiir-pij-prcotroot1ZBZ0B3-82-Z7 gl-kpc尸 _ rootrout1JHUoflZHU1Z5.glkrc-1.2-g|!HiDHci1ruutrotitnnZH11J59h ICEftift hor i tyi-rbi=rr1reel Irouit10ZB : IDinEtal1、 loy-ip i”-* 丁 _ ,_1ruotroat3Z3&IBza 11E3jnEta 11. log .生 1 agnr-mix 3rootroat-4H9&日
10、姑ZUlltzs.Hctsic ityiArwor xr-x3roatroot帕张2811IZ5.naut iIueiruixr xr-xZrootroatZ0Ut25-pyi inputTMi -1rnntroaitBZA11:ZG-re rent J ij-usird-ru! 1roultroat47529ll.:2E_ rhmi-app let co-of-r-wi-r- -f =-1routruut1962BM9711 4Itahru1rootPontZ13丹備初11:59.Xauthor 1 tu-f-y-p p 1“ntroot11S615HR-Z4 BXresoiirpieskm
11、 1* i1! J 11 if.fl 1 lirir. troot ruil IIroot5B4BonZB114 xsess 1 om-cprors6、 切换回第一个控制台,应按什么键:Alt+F1Rei HA XR Afind0丼BIS ZB -2 1 a.norcnda -ks . cf g18 2H:1 InU ll Jluy10 ZH: 19 int a JI 1. lug . eukIuu9、 使用Is命令的常用选项,选项-a,-d,-l,-t,-R,-u 都有何意义?-a显示所有档案及目录truu t V Jutuljwift r ronti ln*c 1 Ihrist pUNKA
12、l 2S-rw-r1 rw r 口. irw-F-=r- 1Ironlocal host IL foli IV luc a lhui;t” 匚口md 旺-ks rf g .bash_hist oryLbA9h_lDginiit Lhdsh.pmF 1 In bashrc.C S Jl F Erou101oCdlhutrout JR cd rnnt 1* J s -1ruui ruulroot rootpn nt v*nntroot II cdrmutJI 1s -a raits . cache 1,conf.gcDinFd.ynomc.yncimeZ,y fiE陪2卩P f閱t遵 gnome-
13、desktop.gnupg ruul)Nuy10GZ9-n A fiuu日IB =21 匸fu10 install, logW 湘:1R i 鹅Ms 11 . 囲 1 叫.g s t r c aucr.gtkrc gtkrc-1,2-gnoniE2.LtlautJioritLi instfl I ll - LogI Tistd I Lng - syslcifg a nietd.citypy Inutrhn-flippIrconf .tcshrcXauthnrItyXvfJKiTiiii r-cfls ksee e i on-err c rs-dIl roots local hostrantJN
14、 c-dr niotPlunaillinstrnatltt Is -1sUORiAcr ZS-ru-rr 1raat rciciii11E9 8AA ta20 :2 1 anaconda -ks: - cf g三 1ruo L f ciu tlBbVD 咻 1UZUltl in&UlUloy亍 1mat root3Z3r QftA 1(?ZRMS InstAl 1 . Ing(rnnt(lrini 1 hnstirnn1;Illl cdL rootBIdea 1hostroot JU Is -a fonts c俎 cHe-1r yst-inedi mt: r,)mj 1 npu tgLuiif
15、.g tkrv ret ciil 1 ip-Lii 占 td鼻 naronriA k書.cfggroflfd.gtkrc 1 .Z gnerw.rlhn applet .confLbsh history卜 gnon&hICEauthori如4teshrthas la join 1.qnoitrinstn 11 , iDtj*.Xauthoritij bflisJiipruf i te.g nunuZ _pi ivalcinstn Jl J i log 衣斗石llug Xreoiircs.hashr亡.gnone 占esktop.iictfir 1 ty.xscs slora errors.ch
16、tc11 I1rootBlcclhostroot JU Is -dL ruDtmuca Ihutroo t Jit1-l除档案名称外,亦将档案型态、权限、拥有者、档案大小等资讯详细列 出IruullilULAHboKtruotJNcd(rootQlocaLhostroot JirIs -1MJDAF1& ZBL. p|j|_ 亍一二rootroot11UuAiy4 naconfla-ks.cf y-TM-F-T - 1run Irout1UH:1U inUll.luy-rw-r-r- 1rootroat3Z36E)開IQ20 rie I Tilt* 11, log . sysF Pont9I
17、nca 0 hastroot Incd1 rou tlflucdilhujlruot IKIunl& ldiuJhc-1.ytrcatK:ja pyiinpuls gconffltkrc.recent Jyi usedanaccmda -ks - cf g.qcnnfd j|tkrc-1. Z-gmoMRZ rlhm-app let. cmnfLbdsh.hlalury.q i|Cih|it:ICEu thurlly,teshre ba&hlU1 juuL.y In u Me9*4-iin居 1rootrunit11S11砒102H -21 ncund - tsf y-rw*-r-r-* 1r
18、uotrout10t710ZB:1D iiiEtnU.loyrnotrnrat3Z36BAA1A: IB insta. 11, lotj BLjsIcgroe t9 Locamot 1U-t将档案依建立时间之先后次序列出roc IB Iocalhoct UOricr ZBj F hV 尸L -rti-r-r- IP I FDDtDlC4 IhU S tL roatli Id 匚口 Ihow truotJUmot ruQt IOOt root Jit root Jitroot ruul rOiilIB 2E rZ 9 dnaEondA-ks.cFgIB 20; IS hitAll.Uy1H 20
19、: IR I ii$tn 11 4 l(ig| . 8yg IciucdIs帀 ndroiidlA-ksqbash.history .bash_logcut.bdsh_praf tie h曲品lh霜eshreL rou tlf 1 u匚“ 0.J1U&tLs -d.f oiit -亡acfeie:.granfri,ginume.yimncZ.fflnmc_pr iuatc ,q)K)WW ruot JH.gstrcaitcr.y tkfc.fltkic*c-l Z=(miiiRiZ 1 Cautbiori ty iTista L J. u Log imsta 11 . loig . syslo
20、g .|Hf* t d p t t4j| lihS.py i npu.t.1 y iidrhn-a卩p i&t ennf .tcshrc*Xau t Jigf ity-Xresffliirces.韶饰*:書丨-眠rr 口户并ir rMtOloEAllinst 和泊酉就2R_ pu)_一_,|ii -* 1-rw-r-r- 1F rant I) Inca Q host ndcanda-Is.cf岁 I piiaitlilnu II hiiiktrnot Jitroot ruot TQiCit rno+ lit1 ns ruolroot ruuil root2 t10bn 3Z3Hon IBOfl
21、A ID(J 酯 10胡:芒 1 dinaciDHdd-ks -cf yZtt:10 incUllilogZB:1B initulIolog.syilevta I L . luy irtsta I 1 . log _sij 1 ag-r将档案以相反次序显示I rou llflDDa Lhu&l I raotll localhostruot rriat root ruoL JN rootIttruul rnnt root tdL1067*33Z36A M6 0 .ID1F| ZR :1B inita 11 11|刖IB ?.9 :18 lnsti 11 . Ion sysloaDlIRdLLUI
22、ldfl-Jks , y t bash.hlstory h4liHlogai -bflshwpirnr .bashre .EshreI rnri IP I oci I hiiri i;gm a me .an Li pg mat ,f 1.gconfguunrd .fnahic ,i MCIlilf氓、gninmrXpr i va it desItop.即 & t Lf!门*!*,(jtkpcy IkrE; -1 u Z-g nuncrZ.ICEauthorItyMsHiii l 1 LegITisia I 1 * I m” P log .letac ity. pecent lij-nised
23、rhiii-app let cumL .tethre,Xriutbnr 1 tij XrirsomrccExXsc&s j on errorst roatDlDcaIhos t mliiHAL ZB h if* mi 評 |LI rouIVluiudilhiul Avuinds 11 fc II 百乐爭 lugroot Jtt Is -ri nsta 11. log anacandiai-ks .cFg I routO103 II hfis i ruol JUi nta 1 II - log . sijis Iciij-uruot rumlJZJ6 U 昭 1UZ0:1D irivtuili 1O0 EyilcgrrootaiocLbostrootJw cdF iro訂 t91.Dca 0 hastrnot In Is: -a.f uiits, cdic he-1-ystredaMrTpyi npu tL I.y cuiif,yIkrcrrceiriUyi-uedB gconfd,fltkrc-1,Z-f ncMcZ *hTrs卩pl匚七.conf.hash h l stni*L|.qmnHiuR.ICEautlinritijLbdh.logout.n iiiOifWZhitd L
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1