Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux vimµÄÓ÷¨

 
ÔÚlinux
ÏÂдns´úÂëÒÔ¼°tcl²âÊԽű¾£¬¹Û²ìtraceÎļþµÈ¶¼ÉÙ²»ÁËÓÃvim¡£vimÊÇÒ»¸ö¸ßЧµÄä¯ÀÀ¹¤¾ß¡£ÓкܶàʹÓü¼ÇÉ£¬ÔÚ´Ë£¬×ªÔØÒ»¸öÓ÷¨¼ò½é¡£
£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½
ÏÈÉÔΪ½éÉÜһϠvim. vi ÊÇ unix/linux
ϼ«ÎªÆÕ±éµÄÒ»ÖÖÎı¾±à¼­Æ÷, ´ó²¿·Ö»úÆ÷É϶¼
ÓÐ. vi Óи÷ÖÖ±äÖÖ,
ÔÚ²»Í¬µÄ»úÆ÷Éϳ£Óò»Í¬µÄ±äÖÖÈí¼þ. ÆäÖÐ vim ±È½ÏºÃÓÃÒ²ÓõñȽÏ
¹ã·º. vim ÊÇ Vi IMproved µÄËõд, ±íʾ¸üºÃµÄ vi. ÎÒ¸öÈ˾õµÃËüÊǷdz£ºÃµÄ±à¼­Æ÷(Ϊ
Á˱ÜÃâ
Emacs ·ÛË¿ÌôÑÛ, ¾Í²»Ëµ×îºÃÁË). ûÓùýµÄÒ²½¨ÒéÊÔÊÔ¿´, µ±È» vim
¶Ô±àдÎı¾
ÎļþºÜ·½±ãºÃÓÃ, ±ÈÈç±àд³ÌÐò, htmlÎĵµµÈµÈ, È´²»ÄÜÓÃÀ´±àд word Îĵµ.
¹ØÓÚ vim µÄ°²×°, »ù±¾Ê¹Ó÷½·¨µÈÍøÂçÉÏÄÜËѳöÐí¶à, ¾Í²»ÔÚÕâÀïÂÞàÂÁË, ÒªÊÇ¶Ô vim ÓÐ
ÐËȤ, ÄǾͿ´¿´ÕâÀï(ÖÐÎÄÎĵµ): http://vcd.gro.clinux.org/
±¾ÎľÍ˵ЩÆäÖбȽÏÓÐÓÃ,
±È½Ï³£ÓõÄÃüÁî, ÈôÄÜÊìÁ·ÔËÓÃÕâЩÃüÁî, ÄÇô»á·¢Ïֱ༭Îļþ
ºÜÊæ·þ.
˵Ã÷:
ÒÔϵÄÀý×ÓÖÐ xxx ±íʾÔÚÃüÁîģʽÏÂÊäÈë xxx
²¢»Ø³µ
ÒÔϵÄÀý×ÓÖÐ :xxx ±íʾÔÚÀ©Õ¹Ä£Ê½ÏÂÊäÈë xxx
²¢»Ø³µ
СÀ¨ºÅÖеÄÃüÁî±íʾÏà¹ØÃüÁî.
Ôڱ༭ģʽ»ò¿ÉÊÓģʽÏÂÊäÈëµÄÃüÁî»áÁíÍâ×¢Ã÷.
1. ²éÕÒ
  /xxx(?xxx)      ±íʾÔÚÕûƪÎĵµÖÐËÑË÷Æ¥ÅäxxxµÄ×Ö·û´®, /
±íʾÏòϲéÕÒ, ? ±íʾ
                 
ÏòÉϲéÕÒ.ÆäÖÐxxx¿ÉÒÔÊÇÕý¹æ±í´ïʽ,¹ØÓÚÕý¹æʽ¾Í²»¶à˵ÁË.
                  Ò»°ãÀ´ËµÊÇÇø·Ö´óСдµÄ, ÒªÏë²»Çø·Ö´óСд,
ÄǵÃÏÈÊäÈë
                  :set ignorecase
                  ²éÕÒµ½ÒÔºó, ÔÙÊäÈë n
²éÕÒÏÂÒ»¸öÆ¥Åä´¦, ÊäÈë N ·´·½Ïò²éÕÒ.
  *(#)            µ±¹â±êÍ£ÁôÔÚij¸öµ¥´ÊÉÏʱ,
ÊäÈëÕâÌõÃüÁî±íʾ²éÕÒÓë¸Ãµ¥´ÊÆ¥ÅäµÄ
              &n


Ïà¹ØÎĵµ£º

[תÌû]LinuxÇý¶¯¿ª·¢Ñ§Ï°µÄһЩ±ØÒª²½Öè

 1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......

LinuxϵͳÏÂifconfigÃüÁîʹÓü°½á¹û·ÖÎö[ת]

 LinuxÏÂÍø¿¨ÃüÃû¹æÂÉ£ºeth0£¬eth1¡£µÚÒ»¿éÒÔÌ«Íø¿¨£¬µÚ¶þ¿é¡£loΪ»·»Ø½Ó¿Ú£¬ËüµÄIPµØÖ·¹Ì¶¨Îª127.0.0.1£¬ÑÚÂë8λ¡£Ëü´ú±íÄãµÄ»úÆ÷±¾Éí¡£
1¡¢ifconfigÊDz鿴Íø¿¨µÄÐÅÏ¢¡£
 
ifconfig [Interface]
InterfaceÊÇ¿ÉÑ¡ÏÈç¹û²»¼Ó´ËÏÔòÏÔʾϵͳÖÐËùÓÐÍø¿¨µÄÐÅÏ¢¡£Èç¹ûÌí¼Ó´ËÑ¡ÏîÔòÏÔʾËùÖ¸¶¨µÄÍø¿¨ÐÅÏ¢
&nbs ......

×î³£ÓÃLINUX³£ÓÃÃüÁî

 LINUX³£ÓÃÃüÁ»ù´¡£©
1. man ¶ÔÄãÊìϤ»ò²»ÊìϤµÄÃüÁîÌṩ°ïÖú½âÊÍ
eg:man ls ¾Í¿ÉÒԲ鿴lsÏà¹ØµÄÓ÷¨
×¢£º°´q¼ü»òÕßctrl+cÍ˳ö£¬ÔÚlinuxÏ¿ÉÒÔʹÓÃctrl+cÖÕÖ¹µ±Ç°³ÌÐòÔËÐС£
2. ls ²é¿´Ä¿Â¼»òÕßÎļþµÄÊô*£¬ÁоٳöÈÎһĿ¼ÏÂÃæµÄÎļþ
eg: ls /usr/man
ls -l
a.d±íʾĿ¼(directory)£¬Èç¹ûÊÇÒ»¸ö"-"±íʾÊÇÎļþ ......

ÔõÑù±àдLinux shell script(Ò»)

 ½üÀ´ÕýÔÚѧϰLinux shell script£¬Ö÷ÒªÊÇѧϰLinux Shell Scripting Tutorial (LSST) v1.05r3µÄ¼¸¸öÕ½ڣ¬µ«ÒòΪÊÇÓ¢ÎĵÄËùÒÔÕâÀï°ÑËü·­ÒëÏ£¬Ò²ÊÇ×Ô¼º¼ÓÉîÓ¡Ï󡣺ÃÁËÖ±½Ó½øÈëÖ÷Ìâ¡£
1.How to write shell script £¿
a.Ê×ÏÈÓÃÈκεıàÒëÆ÷£¨vi,vim,kwrite,....£©±àдһ¸öshell script£»
b.È»ºó°´ÕÕÏÂÃæµÄ·½·¨¸øÄã± ......

LinuxÏÂÎÞ·¨mount±¾»úIPµÄ½â¾ö·½·¨£º

 ÉèÖÃdsnºóËäÈ»ÐéÄâ»ú¿ÉÒÔÉÏÍøÁË£¬µ«ÊÇÓû§Ãû±ä³ÉÁËbogon£¬¶ø²»ÊÇ֮ǰµÄlocalhost£¬È¥µôDNSºóÖØÆôÐéÄâ»ú¾ÍÓÖ±ä³ÉÁËlocalhost
È»ºó¾Í¿ÉÒÔmount±¾»úÁË
»¹ÓÐÒ»ÖÖ·½·¨£º
hostname  ÏÔʾµ±Ç°Ö÷»úÃû
hostname localhost ÉèÖõ±Ç°Ö÷»úÃûΪlocalhost
¹À¼ÆÒ²¿ÉÒÔ½â¾öÉÏÊö²»ÄÜmountµÄÎÊÌâ¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ