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

linux svn³£ÓÃÃüÁî

1¡¢½«Îļþcheckoutµ½±¾µØĿ¼
svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
ÀýÈ磺svn checkout svn://192.168.1.1/pro/domain
¼òд£ºsvn co
2¡¢Íù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
svn add file
ÀýÈ磺svn add test.php(Ìí¼Ótest.php)
svn add *.php(Ìí¼Óµ±Ç°Ä¿Â¼ÏÂËùÓеÄphpÎļþ)
3¡¢½«¸Ä¶¯µÄÎļþÌá½»µ½°æ±¾¿â
svn commit -m “LogMessage“ [-N] [--no-unlock] PATH(Èç¹ûÑ¡ÔñÁ˱£³ÖËø£¬¾ÍʹÓÖno-unlock¿ª¹Ø)
ÀýÈ磺svn commit -m “add test file for my test“ test.php
¼òд£ºsvn ci
4¡¢¼ÓËø/½âËø
svn lock -m “LockMessage“ [--force] PATH
ÀýÈ磺svn lock -m “lock test file“ test.php
svn unlock PATH
5¡¢¸üе½Ä³¸ö°æ±¾
svn update -r m path
ÀýÈ磺
svn updateÈç¹ûºóÃæûÓÐĿ¼£¬Ä¬ÈϽ«µ±Ç°Ä¿Â¼ÒÔ¼°×ÓĿ¼ÏµÄËùÓÐÎļþ¶¼¸üе½×îа汾¡£
svn update -r 200 test.php(½«°æ±¾¿âÖеÄÎļþtest.php»¹Ô­µ½°æ±¾200)
svn update test.php(¸üУ¬ÓÚ°æ±¾¿âͬ²½¡£Èç¹ûÔÚÌá½»µÄʱºòÌáʾ¹ýÆڵĻ°£¬ÊÇÒòΪ³åÍ»£¬ÐèÒªÏÈupdate£¬ÐÞ¸ÄÎļþ£¬È»ºóÇå³ýsvn resolved£¬×îºóÔÙÌá½»commit)
¼òд£ºsvn up
6¡¢²é¿´Îļþ»òÕßĿ¼״̬
1£©svn status path£¨Ä¿Â¼ÏµÄÎļþºÍ×ÓĿ¼µÄ״̬£¬Õý³£×´Ì¬²»ÏÔʾ£©
¡¾?£º²»ÔÚsvnµÄ¿ØÖÆÖУ»M£ºÄÚÈݱ»Ð޸ģ»C£º·¢Éú³åÍ»£»A£ºÔ¤¶¨¼ÓÈëµ½°æ±¾¿â£»K£º±»Ëø¶¨¡¿
2£©svn status -v path(ÏÔʾÎļþºÍ×ÓĿ¼״̬)
µÚÒ»Áб£³ÖÏàͬ£¬µÚ¶þÁÐÏÔʾ¹¤×÷°æ±¾ºÅ£¬µÚÈýºÍµÚËÄÁÐÏÔʾ×îºóÒ»´ÎÐ޸ĵİ汾ºÅºÍÐÞ¸ÄÈË¡£
×¢£ºsvn status¡¢svn diffºÍ svn revertÕâÈýÌõÃüÁîÔÚûÓÐÍøÂçµÄÇé¿öÏÂÒ²¿ÉÒÔÖ´Ðеģ¬Ô­ÒòÊÇsvnÔÚ±¾µØµÄ.svnÖб£ÁôÁ˱¾µØ°æ±¾µÄԭʼ¿½±´¡£
¼òд£ºsvn st
7¡¢É¾³ýÎļþ
svn delete path -m “delete test fle“
ÀýÈ磺svn delete svn://192.168.1.1/pro/domain/test.php -m “delete test file”
»òÕßÖ±½Ósvn delete test.php È»ºóÔÙsvn ci -m ‘delete test file‘£¬ÍƼöʹÓÃÕâÖÖ
¼òд£ºsvn (del, remove, rm)
8¡¢²é¿´ÈÕÖ¾
svn log path
ÀýÈ磺svn log test.php ÏÔʾÕâ¸öÎļþµÄËùÓÐÐ޸ļǼ£¬¼°Æä°æ±¾ºÅµÄ±ä»¯
9¡¢²é¿´ÎļþÏêϸÐÅÏ¢
svn info path
ÀýÈ磺svn info test.php
10¡¢±È½Ï²îÒì
svn diff path(½«Ð޸ĵÄÎļþÓë»ù´¡°æ±¾±È½Ï)
ÀýÈ磺svn diff test.php
svn diff -r m:n path(¶Ô°æ±¾mºÍ°æ±¾n±È½Ï²îÒì)
ÀýÈç£


Ïà¹ØÎĵµ£º

LinuxÏÂrz/sz°²×°¼°Ê¹Ó÷½·¨

1)    ¹¤¾ß˵Ã÷
ÔÚSecureCRTÕâÑùµÄsshµÇ¼Èí¼þÀï, ͨ¹ýÔÚLinux½çÃæÀïÊäÈërz/szÃüÁîÀ´ÉÏ´«/ÏÂÔØÎļþ. ¶ÔÓÚRHEL5, rz/szĬÈÏûÓа²×°ËùÒÔÐèÒªÊÖ¹¤°²×°.
sz: ½«Ñ¡¶¨µÄÎļþ·¢ËÍ(send)µ½±¾µØ»úÆ÷;
rz£ºÔËÐиÃÃüÁî»áµ¯³öÒ»¸öÎļþÑ¡Ôñ´°¿Ú, ´Ó±¾µØÑ¡ÔñÎļþÉÏ´«µ½·þÎñÆ÷(receive).
ÏÂÔØ°²×°°ülrzsz-0.12.20.tar. ......

linux vim ʹÓÃÏê½â


vi vim ʹÓÃ
vim ±à¼­Æ÷
Ê×Ïȼòµ¥µÄ˵һÏÂvi±à¼­Æ÷©¤©¤unixµÄͨÓñ༭Æ÷£¬
¶Á×÷vee-eye (visual editorµÄ¼òд)¡£
(ÕâÀïµÄvim£¬ÊǸĽøµÄvi£¬ Vi Improved¼òд£¬Vim ÓÉBram Moolenaar±àд)
viµÄ¹¤×÷ģʽ
·ÖΪÃüÁîģʽºÍ²åÈëģʽ ÒÔ¼° : exģʽ;
°´esc¼ü¾Í¿ÉÒÔÈÃvi½øÈëÃüÁîģʽ;
²åÈëģʽ¾ÍÊÇÄãÊäÈëÎı¾µÄģʽÁË¡£
......

[ת]Linux²Ù×÷ϵͳÏÂ/etc/hostsÎļþÅäÖ÷½·¨

1. ¹ØÓÚ/etc/host£¬Ö÷»úÃûºÍIPÅäÖÃÎļþ
Hosts - The static table lookup for host name£¨Ö÷»úÃû²éѯ¾²Ì¬±í£©
Linux µÄ/etc/hostsÊÇÅäÖÃipµØÖ·ºÍÆä¶ÔÓ¦Ö÷»úÃûµÄÎļþ£¬ÕâÀï¿ÉÒԼǼ±¾»úµÄ»òÆäËûÖ÷»úµÄip¼°Æä¶ÔÓ¦Ö÷»úÃû¡£²»Í¬µÄlinux°æ±¾£¬Õâ¸öÅäÖÃÎļþÒ²¿ÉÄܲ»Í¬¡£±ÈÈçDebianµÄ¶ÔÓ¦ÎļþÊÇ/etc/hostname¡£
2. ÅäÖÃÎļþ ......

LinuxÄÚºËÖеÄË«Ñ­»·Á´±í

LinuxÄÚºËÖеÄË«Ñ­»·Á´±í
2006-11-27 19:14
Ë«Ñ­»·Á´±í´«Í³ÊµÏÖ
ÔÚ´«Í³µÄË«Ñ­»·Á´±íʵÏÖÖУ¬Èç¹û´´½¨Ä³ÖÖÊý¾Ý½á¹¹µÄË«Ñ­»·Á´±í£¬Í¨³£²ÉÓõİ취ÊÇÔÚÕâ¸öÊý¾Ý½á¹¹µÄÀàÐͶ¨ÒåÖмÓÈëÁ½¸ö£¨Ö¸Ïò¸ÃÀàÐͶÔÏóµÄ£©Ö¸ÕënextºÍprev¡£ÀýÈ磺
typedef struct foo {
    …
    struct foo *p ......

Linux ϱàÒëC³ÌÐò

GCC Ö§³ÖÁËÐí¶à²»Í¬µÄÓïÑÔ£¬°üÀ¨ C¡¢C++¡¢Ada¡¢Fortran¡¢Objective C,Perl¡¢Python ºÍ Ruby£¬ÉõÖÁ»¹ÓÐJava¡£
¡¡¡¡Linux Äں˺ÍÐí¶àÆäËû×ÔÓÉÈí¼þÒÔ¼°¿ª·ÅÔ´ÂëÓ¦ÓóÌÐò¶¼ÊÇÓà C ÓïÑÔ±àд²¢Ê¹Óà GCC ±àÒëµÄ¡£
¡¡¡¡±àÒëC++³ÌÐò£º
¡¡¡¡-c Ö»±àÒë²»Á¬½Ó
¡¡¡¡g++ file1 -c -o file1.o
¡¡¡¡g++ file2 -c -o file2.o
¡¡¡¡g++ f ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ