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

linuxÏÂsvn¿Í»§¶Ë°²×°¼°»·¾³ÅäÖÃ

Ò»¡¢svn¿Í»§¶Ë°²×°¼°»·¾³ÅäÖÃ.
¹ûËùÔÚµÄlinux»úÆ÷ÉÏûÓа²×°svn¿Í»§¶Ë£¬ÔòÊ×ÏÈ°²×°svn¿Í»§¶Ë£º
1.       subversion-1.4.3.tar.bz2  subversion-deps-1.4.3.tar.bz2
 
2.       ʹÓÃ
   tar xvfj subversion-1.4.3.tar.bz2
tar xvfj subversion-deps-1.4.3.tar.bz2

   ½âѹÕâÁ½¸öÎļþ(²»ÒªÂÒÁË˳Ðò)£¬´ËʱÔÚµ±Ç°Ä¿Â¼Ï»á³öÏÖsubversion-1.4.3Îļþ¼Ð£¬
3.       ½øÈësubversion-1.4.3Îļþ¼Ð£º
# cd subversion-1.4.3
#./configure
# make #±àÒ룬Èç¹ûÌáʾ´íÎó£¬ Ôò¿ÉÄÜÐèÒªrootȨÏÞ
# make install #°²×°£¬´Ëʱ¿ÉÄÜÐèÒªrootÓû§È¨ÏÞ

°²×°ºÃ¿Í»§¶ËÖ®ºó£¬ ĬÈÏ°²×°Ä¿Â¼ÊÇ/usr/local/subversion.
4.       ½«svnÃüÁîÁ´½Óµ½/usr/local/binĿ¼ÏÂ(ÐèÒªrootȨÏÞ)£º
ln –s /usr/local/subversion/bin/svn /usr/local/bin
²âÊÔÊÇ·ñÒѾ­¿ÉÒÔÔÚÓû§Ä¿Â¼ÏÂʹÓÃsvn£º
svn help    Èç¹û³öÏÖÃüÁîÁÐ±í£¬Ôò±íʾÒѾ­Á´½Ó³É¹¦¡£
5.       ʹÓÃchmodÃüÁʹ list  checkout  commitÕâÈý¸öÃüÁî½Å±¾ÓÐÖ´ÐÐȨÏÞ£º
        chmod 777 list checkout commit
cp list checkout commit /usr/bin
  
svn¿Í»§¶Ë°²×°³É¹¦
   
 
¶þ¡¢svnÃüÁî²Ù×÷
 
¼ÙÉèsvn·þÎñ¶ËÉÏÓÐÈçÏ¿âĿ¼£º
 
²»ÏÔʾÁË¡£¡£¡£ 
 
 
StevenÔÚËûµÄÓû§Ä¿Â¼ÖÐÓÐworkplaceĿ¼£¬ËûÏë°ÑDemoProjectÇ©³öµ½ËûµÄworkplaceĿ¼ÖУ¬²¢½øÐвÙ×÷£º
 0¡¢  ½øÈëworkplaceĿ¼£¬Ê¹ÓÃcheckoutÃüÁîÇ©³ö£º
cd workplace
checkout DemoProject

´ËʱעÒ⣺ Èç¹ûÄãµÄµÇ½µÄlinuxÖն˵ǽÓû§ºÍÄãµÄsvn²Ù×÷Óû§ÃûͬÃû£¨±ÈÈ綼ÊÇsteven£©£¬Ôò»áÌáʾÄãÊäÈësvn²Ù×÷Óû§µÄÃÜÂ룬·ñÔò»áÏÈÌáʾÄãÊäÈëlinuxÖÕ¶ËÓû§ÃÜÂ룬ȻºóÌáʾÄãÊäÈësvn²Ù×÷Óû§ÃûºÍÃÜÂë
 
½øÐÐÍêÉÏÃæ²Ù×÷ºó£¬ ÔÚworkplaceĿ¼Öоͻá³öÏÖDemoProjectĿ¼¡£ 
 
1¡¢  µ¥¸öÎļþµÄ²Ù×÷£¨hello.cpp£©   ½øÈ뵽Ŀ¼DemoProject/src/demo
A£© ¸üе½±¾µØ
svn up

B£© Ð޸ĺóÌá½»µ½¿â
commit hello.cpp
svn up

C£© ÐÂÔ


Ïà¹ØÎĵµ£º

linux ϱ༭ vi /etc/bash.bashrc

ͨ¹ý±à¼­linuxµÄ/etc/bash.bashrcÎļþÀ´¿ìËÙ¶¨Î»¸÷¸öĿ¼
alias mysqlw="mysql -uroot -p123456"
alias usr="cd /usr/local"
alias src="cd /usr/src"
alias sphinx="cd /usr/local/sphinx"
alias apahce="cd /usr/local/apache"
alias home="cd /home/data/dev_test_com"
alias php="/usr/local/php5/bin/php" ......

Linux ÐźÅ(¼òÂԱʼÇ)

    Ò»¡¢¸ÅÒª
      Ïêϸ½éÉÜ£ºhttp://www.ibm.com/developerworks/cn/linux/l-ipc/part2/index1.html
       ÐźÅÊÇUNIXºÍLinuxϵͳÏìÓ¦½áÌõ¼þ¶ø²úÉúµÄÒ»¸öʼþ¡£½ÓÊÕµ½ÐźŵĽø³Ì»áÏàÓ¦µØ²ÉȡһЩÐж¯¡£
    £¨1£© ÔÚϵͳ ......

svn linux ¿Í»§¶ËʹÓÃ

svn log test.php #ÏÔʾÕâ¸öÎļþµÄËùÓÐÐ޸ļǼ£¬¼°Æä°æ±¾ºÅµÄ±ä»¯
1¡¢½«Îļþcheckoutµ½±¾µØĿ¼
svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
ÀýÈç:
svn checkout svn://192.168.1.1/pro/

2¡¢Íù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
add file add add *.php #Ìí¼Óµ±Ç°Ä¿Â¼ÏÂËùÓеÄphpÎļþ

3¡¢½«¸Ä¶¯µÄÎļþÌá½»µ½°æ±¾¿â
"Log ......

Linux GrepÃüÁîʹÓõÄÏêϸ½éÉÜ

Linux GrepÃüÁîʹÓõÄÏêϸ½éÉÜ
1. grep¼ò½é
¡¡¡¡grep (global search regular expression(RE) and print out the line,È«ÃæËÑË÷ÕýÔò±í´ïʽ²¢°ÑÐÐ
´òÓ¡³öÀ´)ÊÇÒ»ÖÖÇ¿´óµÄÎı¾ËÑË÷¹¤¾ß£¬ËüÄÜʹÓÃÕýÔò±í´ïʽËÑË÷Îı¾£¬²¢°ÑÆ¥ÅäµÄÐдòÓ¡³öÀ´¡£UnixµÄ
grep¼Ò×å°üÀ¨grep¡¢ egrepºÍfgrep¡£egrepºÍfgrepµÄÃüÁîÖ»¸úgrepÓкÜС²» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ