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

LinuxÖ®VIÃüÁîÏê½â

viÊÇËùÓÐUNIXϵͳ¶¼»áÌṩµÄÆÁÄ»±à¼­Æ÷£¬ËüÌṩÁËÒ»¸öÊÓ´°É豸£¬Í¨¹ýËü¿ÉÒԱ༭Îļþ¡£µ±È»£¬¶ÔUNIXϵͳÂÔÓÐËùÖªµÄÈË£¬
»ò¶à»òÉÙ¶¼¾õµÃvi³¬¼¶ÄÑÓ㬵«viÊÇ×î»ù±¾µÄ±à¼­Æ÷£¬ËùÒÔÏ£Íû¶ÁÕßÄܺúðÑËüѧÆðÀ´£¬ÒÔºóÔÚUNIXÊÀ½çÀï±Ø½«³©ÐÐÎÞ×è¡¢
ÓÎÈÐÓÐÓ࣬ÒòΪÆäËû¼¸ÖÖÎı¾´¦ÀíÆ÷²¢·ÇUNIX±ê×¼Å䱸¡£Ëµ²»¶¨±ðÈ˵ÄLinux»úÆ÷û°²×°joe»òpico£¬Èç¹ûÄú²»»ávi£¬ÄÇÄú¿ÉÄܾÍûéüÁË¡£
viµÄ»ù±¾¸ÅÄî
»ù±¾ÉÏvi¿É·ÖΪÈýÖÖ²Ù×÷״̬£¬·Ö±ðÊÇÃüÁîģʽ£¨Command mode£©¡¢²åÈëģʽ£¨Insert mode£©ºÍµ×ÏßÃüÁîģʽ£¨Last line mode£©£¬
¸÷ģʽµÄ¹¦ÄÜÇø·ÖÈçÏ£º
1£® Comand mode£º¿ØÖÆÆÁÄ»¹â±êµÄÒƶ¯£¬×Ö·û»ò¹â±êµÄɾ³ý£¬Òƶ¯¸´ÖÆijÇø¶Î¼°½øÈëInsert modeÏ£¬»òÕßµ½Last line mode¡£
2£® Insert mode£ºÎ¨ÓÐÔÚInsert modeÏ£¬²Å¿É×öÎÄ×ÖÊý¾ÝÊäÈ룬°´EscµÈ¿É»Øµ½Comand mode¡£
3£® Last line mode£º½«´¢´æÎļþ»òÀ뿪±à¼­Æ÷£¬Ò²¿ÉÉèÖñ༭»·¾³£¬ÈçÑ°ÕÒ×Ö·û´®¡¢ÁгöÐкŵȡ£
²»¹ý¿ÉÒÔ°Ñvi¼ò»¯³ÉÁ½¸öģʽ£¬¼´Êǽ«Last line modeÒ²ËãÈëCommand mode,°Ñvi·Ö³ÉCommand ºÍInsert mode¡£
viµÄ»ù±¾²Ù×÷
½øÈëvi
ÔÚϵͳÌáʾ·ûºÅÊäÈëvi¼°ÎļþÃû³Æºó£¬¼´¿É½øÈëviÈ«ÆÁÄ»±à¼­»­Ã棺
$ vi testfile
ÓÐÒ»µãÒªÌرð×¢Ò⣬¾ÍÊÇÄú½øÈëviÖ®ºóÊÇ´¦ÓÚ“Command mode”Ï£¬ÄúÒªÇл»µ½Insert mode²ÅÄÜÊäÈëÎÄ×Ö¡£
³õ´ÎÓÃviµÄÓû§¶¼»áÏëÏÈÓÃÉÏÏÂ×óÓÒ¼üÒƶ¯¹â±ê£¬½á¹ûµçÄÔÒ»Ö±½Ð£¬°Ñ×Ô¼ºÆø¸ö°ëËÀ£¬ËùÒÔ½øÈëviºó£¬ÏȲ»ÒªÂÒ¶¯£¬
ת»»ÈëInsertºóÔÙ˵¡£Çл»ÖÁInsert mode±à¼­ÎļþÔÚCommand modeÏ°´‘i’¡¢‘a’»ò‘o’Èý¼ü¾Í¿É½øÈëInsert mode¡£
ÕâʱºòÄú¾Í¿ÉÒÔ¿ªÊ¼ÊäÈëÎÄ×ÖÁË¡£
i: ²åÈ룬´ÓÄ¿Ç°¹â±êËùÔÚÖ®´¦²åÈëËùÊäÈëµÄÎÄ×Ö¡£
a: Ôö¼Ó£¬Ä¿Ç°¹â±êËùÔÚµÄÏÂÒ»¸ö×Ö¿ªÊ¼ÊäÈëÎÄ×Ö¡£
o: ²åÈëеÄÒ»ÐУ¬´ÓÐÐÊ׿ªÊ¼ÊäÈëÎÄ×Ö¡£
InsertµÄÇл»→Command mode£¬°´Esc¼ü
ÄúÄ¿Ç°´¦ÓÚInsert mode£¬Äú¾ÍÖ»ÄÜÒ»Ö±´ò×Ö¡£¼ÙÈçÄú·¢ÏÖ´ò´í×ÖÁË£¬ÏëÓùâ±ê¼üÍù»ØÒƶ¯£¬½«¸Ã×Öɾ³ý£¬
¾ÍÒª°´ESC¼üת»»»ØCommand mode£¬ÔÙɾ³ýÎÄ×Ö¡£
À뿪vi¼°´æÎļþ
ÔÚCommand modeÏ£¬¿É°´Ã°ºÅ“£º”¼üÈëÈëLast line mode£¬ÀýÈ磺
:w filename (ÊäÈë“w filename”£¬½«ÎÄÕ´æÈëÖ¸¶¨µÄÎļþÃûfilename)
:wq (ÊäÈë“wq”£¬ÒòΪ½øÈë֮ʱÒѾ­Ö¸¶¨ÎļþÃûtestfile£¬ËùÒÔ»áдÈëtestfile²¢À뿪vi)
:q! (ÊäÈë“q!”£¬Ç¿ÖÆÀ뿪²¢·ÅÆú±à¼­µÄÎļþ)
Comm


Ïà¹ØÎĵµ£º

¹ØÓÚLinuxʹÓõÄÕæʵÄÚ´æ

ÎÒÃÇʹÓõÄLinuxºÍWindows¿É²»Ì«Ò»Ñù£¬ÓÃtopÃüÁîµÃ³öÀ´µÄ¿ÉÄܲ»ÊÇÕæʵʹÓõÄÄڴ棬ÓÃfreeÃüÁîµÚ¶þÐвÅÊÇϵͳÕæʵʹÓõÄÄÚ´æ¡£Èç¹û·¢ÏÖPHP-CGI°ÑÄãµÄÄÚ´æÕ¼ÂúÁ˿ɲ»Òª¾ª»ÅŶ¡£
Page cacheºÍbuffer cacheÒ»Ö±ÒÔÀ´ÊÇÁ½¸ö±È½ÏÈÝÒ×»ìÏýµÄ¸ÅÄÔÚÍøÉÏÒ²ÓкܶàÈËÔÚÕù±çºÍ²ÂÏëÕâÁ½¸öcacheµ½µ×ÓÐʲôÇø±ð£¬ÌÖÂÛµ½×îºóҲһֱûÓÐÒ»¸ ......

Howto: Linux Add User To Group (tips)

Q. How can I add a user to a group under Linux operating system?
A. You can use useradd or usermod commands to add a user to a group. useradd command creates a new user or update default new user information. usermod command modifies a user account i.e. it is useful to add user to existin ......

ÔÚRed hat LinuxÏÂͨ¹ýODBCÁ¬½ÓSQLServer2000

Ò» ²âÊÔ»·¾³
Ò» ²âÊÔ»·¾³
²Ù×÷ϵͳ  Red Hat  As 2.1
Êý¾Ý¿â     SQLServer2000 installed in windows xp professional£¬ÎÒ¼Ù¶¨Êý¾Ý¿âÓÐÓû§autotest ÃÜÂëÊÇautotest£¬Êý¾Ý¿âÎļþÊÇatsdb
             ×¢Ò⣺ &n ......

¼òµ¥FTP·þÎñÆ÷µÄ´î½¨£¨linux ¡¢windows£©

linux      ÊÂÇéÒª´ÓSSH˵Æð£¬×ʼÎÒÃÇÔ¶³Ì·ÃÎÊlinux·þÎñÆ÷£¬¶¼ÊÇÓõÄSSH£¬Õâ¸ö¶«Î÷ºÜ·½±ãÁË£¬ÌṩÁËÃüÁîÐУ¬»¹Óд°¿Ú½çÃ棬ÓÃÆðÀ´·½±ã£¬ÏàÐÅÓùýµÄÈ˶¼ÓÐÌå»á£¬µ«Êǵ±ÎÒ»»³ÉflashFXPÁ¬½ÓͬÑùµÄlinux·þÎñÆ÷ʱÔõô¶¼Á¬²»ÉÏ£¬ÕâÏÂÓôÃÆ»µÁË£¬Ôõô°ìÄØ£¿     ÔÚ¾­ÀúÁËÎÞÊý´ÎµÄ³¢ÊÔÖ®ºó£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ