Linux findÃüÁîÏê½â
http://blog.chinaunix.net/u1/53398/showart_478990.html
ÓÉÓÚfind¾ßÓÐÇ¿´óµÄ¹¦ÄÜ£¬ËùÒÔËüµÄÑ¡ÏîÒ²ºÜ¶à£¬ÆäÖд󲿷ÖÑ¡ÏֵµÃÎÒÃÇ»¨Ê±¼äÀ´Á˽âһϡ£¼´Ê¹ÏµÍ³Öк¬ÓÐÍøÂçÎļþϵͳ( NFS)£¬findÃüÁîÔÚ¸ÃÎļþϵͳÖÐͬÑùÓÐЧ£¬Ö»Äã¾ßÓÐÏàÓ¦µÄȨÏÞ¡£
ÔÚÔËÐÐÒ»¸ö·Ç³£ÏûºÄ×ÊÔ´µÄfindÃüÁîʱ£¬ºÜ¶àÈ˶¼ÇãÏòÓÚ°ÑËü·ÅÔÚºǫִ́ÐУ¬ÒòΪ±éÀúÒ»¸ö´óµÄÎļþϵͳ¿ÉÄܻỨ·ÑºÜ³¤µÄʱ¼ä(ÕâÀïÊÇÖ¸30G×Ö½ÚÒÔÉϵÄÎļþϵͳ)¡£
Ò»¡¢find ÃüÁî¸ñʽ
1¡¢findÃüÁîµÄÒ»°ãÐÎʽΪ£»
find pathname -options [-print -exec -ok ...]
2¡¢findÃüÁîµÄ²ÎÊý£»
pathname: findÃüÁîËù²éÕÒµÄĿ¼·¾¶¡£ÀýÈçÓÃ.À´±íʾµ±Ç°Ä¿Â¼£¬ÓÃ/À´±íʾϵͳ¸ùĿ¼¡£
-print£º findÃüÁƥÅäµÄÎļþÊä³öµ½±ê×¼Êä³ö¡£
-exec£º findÃüÁî¶ÔÆ¥ÅäµÄÎļþÖ´ÐиòÎÊýËù¸ø³öµÄshellÃüÁî¡£ÏàÓ¦ÃüÁîµÄÐÎʽΪ'command' { } \;£¬×¢Òâ{ }ºÍ\£»Ö®¼äµÄ¿Õ¸ñ¡£
-ok£º ºÍ-execµÄ×÷ÓÃÏàͬ£¬Ö»²»¹ýÒÔÒ»ÖÖ¸üΪ°²È«µÄģʽÀ´Ö´ÐиòÎÊýËù¸ø³öµÄshellÃüÁÔÚÖ´ÐÐÿһ¸öÃüÁî֮ǰ£¬¶¼»á¸ø³öÌáʾ£¬ÈÃÓû§À´È·¶¨ÊÇ·ñÖ´ÐС£
3¡¢findÃüÁîÑ¡Ïî
-name
°´ÕÕÎļþÃû²éÕÒÎļþ¡£
-perm
°´ÕÕÎļþȨÏÞÀ´²éÕÒÎļþ¡£
-prune
ʹÓÃÕâһѡÏî¿ÉÒÔʹfindÃüÁî²»ÔÚµ±Ç°Ö¸¶¨µÄĿ¼ÖвéÕÒ£¬Èç¹ûͬʱʹÓÃ-depthÑ¡ÏÄÇô-prune½«±»findÃüÁîºöÂÔ¡£
-user
°´ÕÕÎļþÊôÖ÷À´²éÕÒÎļþ¡£
-group
°´ÕÕÎļþËùÊôµÄ×éÀ´²éÕÒÎļþ¡£
-mtime -n +n
°´ÕÕÎļþµÄ¸ü¸Äʱ¼äÀ´²éÕÒÎļþ£¬ - n±íʾÎļþ¸ü¸Äʱ¼ä¾àÏÖÔÚnÌìÒÔÄÚ£¬+ n±íʾÎļþ¸ü¸Äʱ¼ä¾àÏÖÔÚnÌìÒÔÇ°¡£findÃüÁÓÐ-atimeºÍ-ctime Ñ¡Ïµ«ËüÃǶ¼ºÍ-m timeÑ¡Ïî¡£
-nogroup
²éÕÒÎÞÓÐЧËùÊô×éµÄÎļþ£¬¼´¸ÃÎļþËùÊôµÄ×éÔÚ/etc/groupsÖв»´æÔÚ¡£
-nouser
²éÕÒÎÞÓÐЧÊôÖ÷µÄÎļþ£¬¼´¸ÃÎļþµÄÊôÖ÷ÔÚ/etc/passwdÖв»´æÔÚ¡£
-newer file1 ! file2
²éÕÒ¸ü¸Äʱ¼ä±ÈÎļþfile1е«±ÈÎļþfile2¾ÉµÄÎļþ¡£
-type
²éÕÒijһÀàÐ͵ÄÎļþ£¬ÖîÈ磺
b - ¿éÉ豸Îļþ¡£
d - Ŀ¼¡£
c - ×Ö·ûÉ豸Îļþ¡£
p - ¹ÜµÀÎļþ¡£
l - ·ûºÅÁ´½ÓÎļþ¡£
f - ÆÕͨÎļþ¡£
-size n£º[c] ²éÕÒÎļþ³¤¶ÈΪn¿éµÄÎļþ£¬´øÓÐcʱ±íʾÎļþ³¤¶ÈÒÔ×ֽڼơ£
-depth£ºÔÚ²éÕÒÎļþʱ£¬Ê×ÏȲéÕÒµ±Ç°Ä¿Â¼ÖеÄÎļþ£¬È»ºóÔÙÔÚÆä×ÓĿ¼ÖвéÕÒ¡£
-fstype£º²éÕÒλÓÚijһÀàÐÍÎļþϵͳÖеÄÎļþ£¬ÕâЩÎļþϵͳÀàÐÍͨ³£¿ÉÒÔÔÚÅäÖÃÎļþ/etc/fstabÖÐÕÒµ½£¬¸ÃÅäÖÃÎļþÖаüº¬Á˱¾ÏµÍ³ÖÐÓйØÎļþϵͳµÄÐÅÏ¢¡£
-mount£ºÔÚ²éÕÒÎļþʱ²»¿çÔ½Îļþϵͳmountµã¡£
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
ÉèÖÃdsnºóËäÈ»ÐéÄâ»ú¿ÉÒÔÉÏÍøÁË£¬µ«ÊÇÓû§Ãû±ä³ÉÁËbogon£¬¶ø²»ÊÇ֮ǰµÄlocalhost£¬È¥µôDNSºóÖØÆôÐéÄâ»ú¾ÍÓÖ±ä³ÉÁËlocalhost
È»ºó¾Í¿ÉÒÔmount±¾»úÁË
»¹ÓÐÒ»ÖÖ·½·¨£º
hostname ÏÔʾµ±Ç°Ö÷»úÃû
hostname localhost ÉèÖõ±Ç°Ö÷»úÃûΪlocalhost
¹À¼ÆÒ²¿ÉÒÔ½â¾öÉÏÊö²»ÄÜmountµÄÎÊÌâ¡£ ......
¡¡±àÒëºÍÁ¬½Ó³ÌÐò
¡¡¡¡MySQLÖÐÓÐÒ»¸öÌØÊâµÄ½Å±¾,½Ð×ömysql_config. Ëü»áΪÄã±àÒëMySQL¿Í»§¶Ë,²¢Á¬½Óµ½MySQL·þÎñÆ÷ÌṩÓÐÓõÄÐÅÏ¢.ÄãÐèҪʹÓÃÏÂÃæÁ½¸öÑ¡Ïî.
¡¡¡¡1. --libs Ñ¡Ïî - Á¬½ÓMySQL¿Í»§¶Ëº¯Êý¿âËùÐèÒªµÄ¿âºÍÑ¡Ïî.
¡¡¡¡$ mysql_config --libs
¡¡¡¡2. --cflags Ñ¡Ïî - ʹÓñØÒªµÄincludeÎļþµÄÑ¡ÏîµÈµÈ.
......
±ÈÌØÍøתÔØ£ºhttp://datacenter.chinabyte.com/308/11039308.shtml
ÈÕÖ¾¶ÔÓÚ°²È«À´Ëµ£¬·Ç³£ÖØÒª£¬Ëû¼Ç¼ÁËϵͳÿÌì·¢ÉúµÄ¸÷ÖÖ¸÷ÑùµÄÊÂÇ飬Äã¿ÉÒÔͨ¹ýËûÀ´¼ì²é´íÎó·¢ÉúµÄÔÒò£¬»òÕßÊܵ½¹¥»÷ʱ¹¥»÷ÕßÁôϵĺۼ£¡£ÈÕÖ¾Ö÷ÒªµÄ¹¦ÄÜÓУºÉó¼ÆºÍ¼à²â¡£Ëû»¹¿ÉÒÔʵʱµÄ¼à²âÏµÍ³×´Ì ......
²Î¿¼×ÊÁÏ£ºhttp://www.blogjava.net/lijun_li/archive/2009/04/02/263491.html
http://www.chinalinuxpub.com/read.php?wid=1080
Ó²Å̹ÒÔزÙ×÷¹¤×÷²½Ö裺
1¡¢ÏȲ鿴Ŀǰ»úÆ÷ÉÏÓм¸¿éÓ²ÅÌ£¬²é¿´ÃüÁîÓÐÁ½ ......