Linux-实验六-vi文本编辑器_第1页
Linux-实验六-vi文本编辑器_第2页
Linux-实验六-vi文本编辑器_第3页
免费预览已结束,剩余9页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、练习一:1.2.3.4.-# cd /root十 mkdir vitestT# l書公共的 视無 文档 音乐 vitest摸板 囲片下叢桌面# MANBIN# HANPATH# MANPATH MAPto be equal to the mandir and catl etc. subdirs).实验六vi文本编辑器上机实验容:请在/root这个目录下建立一个名为vitest的目录;rootglocalhost rootlocalho£t roQtlocalhost anaconda-ks.f+g installlog进入vitest这个目录当中;roQtlocalhost -# c

2、d r./rdot/viteslrootlocalhost vitest# |将/etc/man.config 拷贝到本目录底下;rootlocaLhost *# cd ,./root/vitestroot(3localhost vitest# 仁卩 /etc/man.config /root/坤itEStro0tlocalhost vitest# Isman.config使用vi开启本目录下的 man.config 这个档案;# Generated automat!匚ally from man.conf * in by the# configure script.# man,conf fro

3、m man -1# For mo re information about this file. see the man pages man(l)# and man.conf(5).# This file is read by man to configure the default manpath (also used# when MANPATH contains an empty substrirglF to find out where the cat# 卩日gm呂 corresponding to given man pages should be stored,# and to ma

4、p each PATH element to a manpath element.# It may also record the pathname of the man binar/. This is unused.# The format is:pathnamemanpathelement correspondingcatdir path elementmanpath eLemenl:# If no catdir is given, it is assumed# (so that this dir has both manl etc.5.在vi中设定一下行号;# This is the t

5、raditional Unix setup.95 TROFF/usr/bin/groff -Tps -mandoc96 NROFF/usr/bin/nroff -c -mandoc 2>/dev/null37 EQN/usr/bin/geqn-Tps98 NEON/usr/bin/geqn-Tutf899 TBL/usr/bln/gtbl10日 # COL/usr/bin/col1G1 REFER/usr/bin/grefer:se t numbe r6.移动到第62行,向右移动 40个字元?|:626;40 |61 * The below mappings are superfluou

6、s when the right hand side is62 # in the mandatoy nianpath already, butrill keep man from statting 孙 # lo仕 of othmr 口乜白rb、但1色£ mnd directories.7.移动到第一行,并且向下搜寻一下teTeX这个字串?1 g2 # Generated autonatically from wan.conf.in by the3 # configure script,4 #5 # man,conf from nan-1.6f6 # For mo re infonat

7、io n about this file, see th 亡 man pages man( 1)8 # and man,conf(5)9 #10 # This file is read by man to configure thE default rnanpath (also used11 # when MANPATH contains an empty substring)r to find out where the cat12 # pages corresponding to given man pages should be stored,13 # and to map each P

8、ATH element to a manpath element.14 # It may also record the pathname of the man binary. This is unused.15 # The format is:16 #17 # MANBIN18 # HANPATH19 # MANPATH MAP20 #pathname21 # If no catdir is given, it is assumed22 # (so that this dir has both manl etc.2了 # Thi生 is theUnix setup.4B6:找不到摸式:teT

9、eXto be equal to the mandir and catl etc. subdirs).111顶端manpath eleirent corresponding catdir J pathelementmanpath element8. 接着下来,我要将50到100行之间的 man改为MAN ,并且一个一个挑选是否需要修改?40 #41 # Every autorratically generated HAN PATH includes these fields42 #43 MANPATH /usr/ftan44 MANPATH /usr/share/rran45 MANPATH

10、/usr/iocal/|an46 NANPATH /usr/local/share/nar47 MANPAH /usr/XllR6/ian48 #49SB51525354555657585960# Uncomment if# MANPATH# MANPATH# MANPATH# MANPATHyou want to include one of these by default/opt/*/_ /usr/lib/*/| /usr/share/*/i /usr/kerberos/hi an# Set up PATH to MAhPATH mapping# If people ask for &q

11、uot;man fooh, and have "/Hiiybin/foci" in their PATH# and the docs are found in H/dir/|iai"rr then no mappinq is required.61 # The below niappings are superfluous when the right hand side is62 # in the (rarfdatory nafjpath already, but will keep man from slatting 瞽換为 JWJ (y/n/a/q/l/rt

12、E/AY) ? |9. 修改完之后,突然反悔了,要全部复原?44 KANP/TH /usr/shareman45 HANPATH /u$r/local/Bn4b MANPATH /jsr/local/share/an49 # Uncomment 1147 HANPATH /usr/XllR6<H| 40 #you want to inelude one of these by default51 # MAKPATH52 # MAhPATH* MASPATH54 # MANPATH55 #56 # Set up PATH/opt/MAN /u&r/lib/*/1AN /usr/sh

13、are严/MAN /usr/kerberos/MANto MANPATH mapping58 # If people ask for "MAN59 # and th亡are foundfoo" and have "/dir/bln/foo" in their PATH in 'Vdir/HAN"f then no mapping is 亡quired.60 *61 # The below niappings are superfluous when the right hand side is62 # in the MANdatory

14、MANpath already, but will ikeep MAN from statting63 # lots of other nearby files and directories.-64 #/usr/share/MAN /usr/share/65 MANPATH HAP/bln66 MANPATH MAP/sbin替換为 MAN (y/n/a/q/l/"E/AY) ? |44454b47484950515253545556575S59 fit)6162646566'lANPATH HANPATH HANPATH lANPATH # Uncomment/Lsr/s

15、hare/ran/isr/local/|an /iisr/local/share/usr/XllRfi/lanr MANPATH S MANPATH* MANPATH# MANPATHif you Afant to include one of these by default/opt/*/HAN /usr/lib/*/man /usr/share/j /usr/kerberos7to MAM PATH mapping# Set up PATH# If people ask for 'jian foe' cind have "/dir/bii/foo" in

16、 their path /dir/man then no mapping is required.# dnd the docs are found in# The below mappings are superfluous Vihen the righthand side is 排 in the井 Lots ot other#MANPATHMAPblANPATHMAP1 行发空改变;before #2 G0:47:22FMTdatory ia|path al re 白 dy, but will keepnearby tiles and directories.from statting/bi

17、n /sbin/usr/share/ /usr/share/52 J33%10.我要复制51到60行这十行的容,并且贴到最后一行之后;140 M141 -F/bin/zcat142143 #144 # Enable/disable makewhatis database cron updates.145 # If MAKEWHATISDBUPDATES variable is uncommented146 # and set to n or hl# cron scripts147 # /etc/cron,daily/makewhatis.cron148 # /etc/cron.weeklyma

18、kewhatis.cron149 # will not update nakewhatis database,150 # Otherwise the database will be updated.151 #15215315415515615715B159160161162#MAKEWHATISDBUPDATESn/opt/*/man /usr/lib/*/ /usr/share/*/# MANPATH# MANPATH# MANPATH# MANPATH/usr/kerberos/# Set up PATHto MAhlPATlH mapping# If people ask for &q

19、uot;|an foo" and have "/dir/bin/foo' in their PATH# and the docs are found in M/dir/_"(then no mapping is required多了側行162.1底端11.删除11到30行之间的20 行;# Generated automatically from nian|xConf.in by the# confiqure script.conf frofn8310111213141516# For more information about this file, s

20、ee# and man.conf(5),#This file is read by 帕n to configure the Q Explicitly given catdirs override.thedefaultpages nan(l)# FSSTNDFHS# This file is also read by iirai in order lofind how to call nroffF less, et1718192021/usr/lacal/bin/man少2。行na血端# anH to determine the correspondence between extensions

21、 and decompressors.# HANBIN# Every automatically generated MANPATH includes these fields#12. 将这个档案另存成一个ma n.test.co nfig的档名;1 #5 # manconf from nan|-l,6f6 #7 #8 #9 #10 #11 #12 #13 #-# Generated autonatically from conf .in by the 3 # configure script.conf(5).For(rore inf dpi 白 tion about this file, s

22、ee the mian pages man(l andFSSTNDThis file is read by msn to configure the default )ath (also used Explicitly given catdirs override.14 FHS15 #W # This file is also read by in order to fiid how to call nroff, less, et17 # and to determine the corresponH皂nc电 between extensions and decompressors.18 #1

23、9 # MANBIN/u$r/lacal/bin/|ian22 #21 # Every automatically generated MANPATH includes these fields22 #w mart.t雷t,config13. 去到第29行,并且删除15个字符;29G之后,15x即可删除15个字符1 #,conf,in by the2 # Generated automatically from3 # configure script*a #9 #19 #11 #12 #For more information about this filet see the and (nan

24、 ,conf(5).pages ran(1)This file is read by iman to configure the default pnoath (also used Explicitly qiven catdirs override.13 # FSSTND15 #iiTHTin order to find how to call mrofft less, et16 # This file is also read byJ17 # and to determine The correspondEn£E between extensions 白nd decampressors.18 #19 # hafjbinZusr/local/bin/20 #21 # Every automatically generateo MANPATH includes these field

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论