版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实验六vi文本编辑器上机实验内容:1.rooWlocaltiost、#cd/rootroot(aiocalhost-#mkdirvitestraotlocalhostIsanaconda'ks.cfginstall.log请在/root这个目录下建立一个名为vitest的目录;in3taU,log.5yslag公共的视独文档音亲vitest摸械图片下载桌面进入vitest这个目录当中;rooteiocaUiostcdF./rbat/vitestrootglocalhostvitest#|将/etc/man.config拷贝到本目录底下;roottaiocalhost-#cd-Vroof
2、/uitestrooWlocalhostvitest#cp/etc/man.config/root/vitestrootlocalhostvitest#Isman.config# 使用vi开启本目录下的man.config这个档案;R"Generatedutomaticallyfromman.conf.inbytheconfigurescript.# #man.corffromman-1.6f#Formoreinformationaboutthisfile,seethemanpagesmandlandman.conf(5),#Thisfileisreadbymantoconfigur
3、ethedefaultmanpath(alsousedwhenMANPATHcontainsanemptysubstring),tofindoutvfherethecatpagescorrespondingtogivennoanpagesshouldbestored,andto叫eathPATHelementtoamanpathelement.# Itmayalsorecordthepathnameofthemanbinary.Thisisunused.Theformatis:# #WANBINpathnameMANPATHrnanpathelementcorrespondingcatdirM
4、ANPATHHAPpath_elenieiitmanpathelenient一-Ifnocatdirisgiven,itisassumedtobeequaltothemandir(sathatthisdirhasbothmanletc.andcatletc.subdirs).# ThisisthetraditionalUnixsetup.2. 在vi中设定一下行号;n#MANBIN#MANPATH#MANPATHMAP26#212223# Ifnocatdirisgiven,itisassumed(sothatthisdirhasbothmanletc.ThisisthemditiunalUn
5、ixsetup.tobeequaltotheniandirandcatletc,subdirs).;486:找不到模式:1.1顶端TRQFF/usr/bin/groff-Tps-mardocNROFF/usr/bin/nroff-c-mardoc2>/dev/null37EQN/usr/bin/geqn-Tp5NEON/usr/bin/geqn-TutfBTBL/usr/bin/gtbld#COL/usr/bin/coV1G1REFER/U5r/bin/greferI:setnumber3. 移动到第62行,向右移动40个字元?:62G;4G|#Thebelowmappingsaresu
6、perfluouswhentherighthandsideis4inthemandatorymanpathalready,keepmanfromstatting.63#lotsofothernearbyfilesanddirectories.7.移动到第一行,并且向下搜寻一下teTeX这个字串?2 #Generatedaiitcmaticallyfromman.conf.inbythe#configurescript.3 #man.conffromuan-l,6f#Formareinfornationaboutthisfile,seethemanpagesman(l)#andman.conf(
7、5).11 9希le#Thisfileisreadbymantoconfigurethedefaultmanpathalsoused#whenMANPATHcontainsanemptysubstring),tofindoutwherethecat#pagescorrespondingtogivenmanpagesshouldbestored,#andtomapeacnPATHelementtoamanpathelement.12 #Itmayalsorecordthepathnameofthemanbinary.Thisisunused.#Theformatis:#pathnamemanpa
8、theleirentcorrespondingcatdirlpath_elementmanpathelement8.接着下来,我要将50到100行之间的man改为MAN,并且一个一个挑选是否需要修改?40#41jj,4344454647484959515253545556575859606162_唇换为MAN(y/n/a/q/l/ErY)?|EveryMANPATHMANPATHMANPATHMANPATHHANPATH#automaticallygeneratedMANPATHincludesthesefields/usr/a|/usr/share/pn/usr/local/pn/usr/t
9、ocal/share/riar/usr/XllR6/ianUncomnient#MANPATHMANPATHMANPATHMANPATH#ifSetupPATHyouwanttoincludeoneofthesebydefault/opt/*/_/usr/lib/*/usr/share/-/usr/kerberos/rnantoMAhPATHmappingIfpeopleaskfar"|nanfoo"andhave"/dir/bin/foo"intheirPATHin*/dir7i施r|thennomappingisrequired!.#Thebelow
10、mappingsareinthelatoryran|path_alreadyfbutwillkeepmanfromstatting一51,18*24andthedocsarefoundsuperfluouswhentherighthandsideis9.修改完之后,突然反悔了,要全部复原?44454b474Q495051525354555657505960MANPATHMANPATHMANP4IHMANPATHUncommentMANPATHMAXPATHMAKPATHMANPATH#/dsr/share/usr/local/usr/locaWshare/uir/XURfluEU11youwa
11、nttoincludeoneofthesebydefault/opt/-/HAN/usr/lib/MAhl/usr/share/*/MAN/usr/kerberos/MANSetupPATHtoMANPATHmaopingIfpeopleaskforMMANancthedocsarefoundfoohrandhaveh7dir/bin/fooHintheirPATHin'Vdir/MAN,',thennomappingi5required.61#Thebelqwmappingsaresuperfluouswhentherighthandsideis'<2#inth
12、eMANdatoryMANpathalready,butwillkeepMANfromstatting63#lotsofothernearbyfilesanddirectories.-64#65 MANPATH咐P/bin/usr/share/MAhMANPFTH咐P/usr/share/TO替换为rVM(y/n/a/q/l/"E/AY)?I&6,32-5233招44 KANPATH/usr/share/iTian45 -1ANPATH/u$r/local/Han4CArjp.-.TH/usr/local/&iiare/|idri47 HANPATH/USF/XUR6
13、/H#4950515253545556575B59616263646566#UncommentMANPATH日MANPATH/MANPATH#MANPATHifyouwanttoincludeoneofthesebydefault/opt/*/HAN/usr/Ut/*/j/usr/share/7|»n/usr/kerberos/nan#SetupPATHtoMANPATHmapping等Ifpeopleaskfor"ndnfandhave"/dir/bin/fintheirPATH#andthedocsarefoundin'/dir/ianthennoma
14、ppingisrequired.# ThebelowmappingsaresuperfluoushentherighWiandsideis# inthenandatory# Lotsofother#HANPATHMAPHANPATHMAPpathalread/,butwillkeepmanfromstattingnearbytilesanddirectories./bin/sbin/usr/share/usr/share/1行没生改变;before#2GQ:47:2252,L3310.我要复制51到60行这十行的内容,并且贴到最后一行之后;149.1/bin/zcat141 .F142 .Y1
15、43 #144 #Enable/disablemakewhatisdatabasecronupdates.145 #IfMAKEWHATISDBUPDATESvariableisuncommented146 #andsettonorM*cronscripts147 #/etc/cron-daily/nakewhatis*cron148 #/etc/cron.weekly/makewhatis.cron149 #willnotupdatenakewhatisdatabase.15Q#Otherwisethedatabasewillbeupdated.151#15215315AL551561571
16、58159#MAKEWHATISP6UPDATESn# MANPATB/opt/*/j2# MANPATH/usr/lib/*/|an# MANPATH/usr/share/*7|ian# MANPATH/usr/kerberos/#SetupPATHItoHANPATHmapping15S#Ifpeopleaskfor"Bantoo"andhave"/dir/bin/foa'intheirpath161 #andthedocsarefoundinVdir/n"Fthennonappingisrequired.162 S多了16行162a底端.c
17、onf.inbythe45678.conffrom# Formoreinformationaboutthisfile,seeandman.conf(5),thepagesrari(i|#E#ThisfileisreadbymantoconfiguretheExplicitlygivencatdirsoverride.defaultpath(alsoused# #Generatedautomaticallyfromconfigurescript.13 #FSSTND14 FHS15 #Thisfileisalsoreadbyiraninordertofindhowtocallnroff,less
18、,etcr16 #andtodeterminethecorrespondencebetweenextensionsanddecompressors.17 #18 #MANBIN/usr/local/bin/|iian2Q#21 #EveryautomaticallygereratedMANPATHincludesthesefields22 #12. 少2。仃】L1项端将这个档案另存成一个man.test.config的档名;1 #2 #Generatedautonaticallyfromian.conf.inbythe3 #configurescript.4 #5 #man.conffromn
19、an|-l,6f#Fornoreintonationaboutthisfile,seethemanpagesmarf18 #andiifan|.conf(5:.9 #I #Thisfileisreadbymantoconfigurethedefaultitanaath(alsouedII #Explicitlygivencatdirsoverride.12 #13 #FSSTND14 FHS15 #Thisfileisalsoreadbyrnaninordertofiidhowtocallnroff,less,etc.,16 #andtodeterminethecorrespondencebe
20、tweenextensionsanddecompressors.17 #18 #MANBIN/usr/local/bin;|Bi|29#21 #EveryautomaticallygeneratedMANPATHincludesthesefields22 #13. wman.tst.config去到第29行,并且删除15个字符;(29G之后,15x即可删除15个字符)1#2#3#4#5#6#7#8#9#ie#ii#12#13#14Fl15#16#c171819#20#21#22#Generatedautomaticallyfromman.conf.inbytheconfigurescript.
21、manconffromL5nFormoreinformationaboutthisfile,seeand.conf(5).ThisfileisreadbyExplicitlygivencatdirsoverride.toconfiguretheFSSTNDThisfileisalsoreadbyiifTTinordertothepages(1)defaultnidnpath(alsousedfindhow1ocallnrofftless,etandtodetermineThecorrespondencebetweenextensionsanddecompressors.MANBIN/usr/local/bin/|ianEveryautomaticallygeneratedMANPATHincludesthesefields29,15艰14.储存后离开吧!:wq|1.把操作目录转到/tmprootglocalhostcd/tmpn)otlocalhosttmp#|使用vim同时新建并编辑两个文件t1,t2在两个文件中分别输入内容并保存文本toocaIhost:-文件旧Hf(y)型索(3恣端利助旧)|567S9123456tlpt2"LL,7C4.把t1的第一行复制粘贴到t2
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年虚拟现实技术研发分包合同协议书
- 2024微计小程序区域独家代理合作合同书2篇
- 2024年第狞部分工程建设项目协议版B版
- 2024年还款协议书
- 2024广告创意制作与高空安装服务协议一
- 2024年精简版:离婚条件和条款协议
- 2024年美容院设备转让合同
- 2024幼儿园教师学生艺术特长培养劳动合同3篇
- 《经济增长理论综述》课件
- 2024年续约意向协议范本版B版
- 2025年上半年河南省西峡县部分事业单位招考易考易错模拟试题(共500题)试卷后附参考答案-1
- 深交所创业板注册制发行上市审核动态(2020-2022)
- 手术室护理组长竞聘
- 电力系统继电保护试题以及答案(二)
- 小学生防打架斗殴安全教育
- 2024-2025学年九年级英语上学期期末真题复习 专题09 单词拼写(安徽专用)
- 网络运营代销合同范例
- 2024年新人教版七年级上册历史 第14课 丝绸之路的开通与经营西域
- 植保无人机安全飞行
- 医疗纠纷事件汇报
- 2024年村干部个人工作总结例文(3篇)
评论
0/150
提交评论