Linux Find ÃüÁָͨÄÏ
ת×Ô£ºhttp://www.oracle.com/technology/global/cn/pub/articles/calish-find.html
Linux find
ÃüÁîÊÇËùÓÐ Linux ÃüÁîÖÐ×îÓÐÓõÄÒ»¸ö£¬Í¬Ê±Ò²ÊÇ×î»ìÂÒµÄÒ»¸ö¡£ËüºÜÄÑ£¬ÒòΪËüµÄÓï·¨ÓëÆäËû
Linux ÃüÁîµÄ±ê×¼Óï·¨²»Í¬¡£µ«ÊÇ£¬ËüºÜÇ¿´ó£¬ÒòΪËüÔÊÐíÄú°´ÎļþÃû¡¢ÎļþÀàÐÍ¡¢Óû§ÉõÖÁÊÇʱ¼ä´Á²éÕÒÎļþ¡£Ê¹Óà find
ÃüÁÄú²»µ«¿ÉÒÔÕÒµ½¾ßÕâЩÊôÐÔÈÎÒâ×éºÏµÄÎļþ£¬»¹¿ÉÒÔ¶ÔËüÕÒµ½µÄÎļþÖ´ÐвÙ×÷¡£
±¾ÎĵÄÄ¿µÄÊÇ£¬Í¨¹ý¸ÅÊö find
ÃüÁîµÄÓÃ;ºÍDZÄÜ£¬¼ò»¯¸ÃÃüÁîµÄѧϰºÍʹÓá£Í¬Ê±£¬Ëü½«Õë¶Ô find
ÃüÁîµÄijЩ×îÇ¿´óµ«×î»ìÂҵķ½ÃæÌṩһ¸ö»ù±¾µÄÖ¸ÄϺͲο¼¡£
[×¢Ò⣺±¾ÎÄʹÓÃµÄ find °æ±¾ÊÇ GNU °æ±¾£¬Òò´Ë£¬Ä³Ð©Ï¸½Ú¿ÉÄÜÓëÆäËû°æ±¾µÄ find
ÓÐËù²»Í¬¡£]
»ù±¾¸ñʽ
¿ªÊ¼Ö®Ç°£¬ÎÒÃÇÏÈÀ´¿´Ò»Ï find
ÃüÁîµÄ»ù±¾½á¹¹£º
find start_directory test options criteria_to_match
action_to_perform_on_results
ÔÚÒÔÏÂÃüÁîÖУ¬find
½«¿ªÊ¼ÔÚµ±Ç°Ä¿Â¼£¨ÓÓ.”±íʾ£©ÖвéÕÒÈκÎÀ©Õ¹ÃûΪ“java”µÄÎļþ£º
find . -name "*.java"
ÏÂÃæÊǸÃÃüÁîËùÕÒµ½µÄÃüÁîµÄËõÂÔÇåµ¥£º
find . -name "*.java"
./REGEXPvalidate/src/oracle/otnsamples/plsql/ConnectionManager.java
./REGEXPvalidate/src/oracle/otnsamples/plsql/DBManager.java
..
[×¢Ò⣺Èç¹ûÄú´Ó±¾ÎļôÇв¢Õ³ÌùÀ´ÔËÐиà find ÃüÁÄú¿ÉÄÜÐèҪʹÓÃ×Ô¼ºµÄ¼üÅÌÌ滻˫ÒýºÅ (“”)
²ÅÄܵóöÕýÈ·µÄ½á¹û¡£]
ÒÔÏÂÃüÁִÐÐÏàͬµÄ²Ù×÷¡£ÔÚÕâÁ½ÖÖÇé¿öÏ£¬Äú¶¼ÐèÒª¶ÔͨÅä·û½øÐÐתÒåÒÔÈ·±£Ëü´«µÝµ½ find ÃüÁî²¢ÇÒ²»ÓÉ shell
½âÊÍ¡£Òò´Ë£¬Ç뽫ÄúµÄËÑË÷×Ö·û´®·Åµ½ÒýºÅÀ»òÕßÔÚËüÇ°Ãæ¼ÓÉÏ·´Ð±Ïߣº
find . -name \*.java
¾¡¹Ü find
µÄËùÓвÎÊý¾ùΪ¿ÉÑ¡£¬µ«ÊÇÈç¹ûÄúδָ¶¨´ÓÄÄÀ↑ʼËÑË÷£¬ËÑË÷ĬÈϽ«ÔÚµ±Ç°Ä¿Â¼ÖпªÊ¼¡£Èç¹ûÄú²»Ö¸¶¨ÒªÆ¥ÅäµÄ²âÊÔÁ¬½Ó¡¢Ñ¡Ïî»òÖµ£¬ÄúµÄ½á¹û½«²»ÍêÕû»òÕßÎÞÇø
±ð¡£
ÔËÐÐÒÔÏÂÈý¸ö find ÃüÁµÃ³öͬÑùµÄ½á¹û —
µ±Ç°Ä¿Â¼ºÍËùÓÐ×ÓĿ¼ÖеÄËùÓÐÎļþ£¨°üÀ¨Òþ²ØÎļþ£©µÄÍêÕûÇåµ¥£º
find
find .
find . -print
ÕâÀàËÆÓÚÔËÐÐÒ»¸ö´ø -la Ñ¡ÏîµÄ ls
ÃüÁî¡
Ïà¹ØÎĵµ£º
¹ØÓÚqt embedded phonon °²×°ÎÊÌâ¡£
¿ÉÄÜÔÚ°²×°$sudo ./configure -phonon -phonon-backend .....µÄʱºò»á˵ÕÒ²»µ½phonon ,
ºÜÃ÷ÏÔÒòΪûÓÐÕâ¸öphononÕâ¸ö¿â£¬µ±È»¾Í»áÕÒ²»µ½£¬ÔÚ±àÒëµÄʱºò£¬
ÌرðÊÇ./configure -phonon -phonon-backendµ±±àÒëºÜ¶Îʱ¼äºó»á˵£ºPhonon support cannot ...Õâ¸öʱºò¾Í¾ÍÇëÄã¼ÓÉÏ'-v'£»$sud ......
GPIO£¨General Purpose Input/OutputµÄËõд£©¾ÍÊÇоƬµÄÒý½Å£¬Òý½ÅÊǿɱà³ÌµÄ¿É¶ÔÒý½ÅµÄ¹¤×÷ģʽ½øÐÐÉèÖãºÊäÈëģʽ(¼ì²âÊäÈëÐźÅ)£¬Êä³öģʽ(Êä³ö0»ò1)£¬¸ß×è״̬(³£ÓÃÓÚADת»»)£¬»¹ÓнûÖ¹»òÔÊÐíÉÏÄÚ²¿ÏÂÀµç×è(ÉÏÀ£º¹Ü½Åͨ¹ýµç×è½Ó¸ßµçƽ£¬ÏÂÀ£º¹Ü½Åͨ¹ýµç×è½ÓµØ£¬Ò²¿ÉÒÔÍⲿ½ÓÉÏÀ»òÏÂÀµç×è)£¬»¹ÓйܽŸ´Óõȹ¦ÄÜ£¬ ......
linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ (kernel) ÔÚÄÚ
/boot/grub/menu.lst &n ......
¾³£ÐèÒªKill¶à¸ö½ø³Ì£¬ÕâЩ½ø³Ì°üº¬¹²Í¬µÄ¹Ø¼ü×Ö£¬¿ÉÒÔÓÃÒ»ÌõÃüÁîKillµôËüÃÇ¡£ ps aux | grep "common" | cut –c 9-15 | xargs kill –9 ¹ÜµÀ·û¡°|¡±ÓÃÀ´¸ô¿ªÁ½¸öÃüÁ¹ÜµÀ·û×ó±ßÃüÁîµÄÊä³ö»á×÷Ϊ¹ÜµÀ·ûÓÒ±ßÃüÁîµÄÊäÈë¡£ÏÂÃæ˵˵ÓùܵÀ·ûÁª½ÓÆðÀ´µÄ¼¸¸öÃüÁ "ps aux" ²é¿´ËùÓнø³ÌµÄÃüÁî¡£Õâʱ¼ìË÷³öµÄ ......
×òÌìÍíÉÏ×¼±¸×°subversion ½á¹ûÅöµ½Ò»¸öºÜÄÕ»ðµÄÎÊÌâ
[root@rhel6beta Packages]# rpm -ivh libproxy-0.3.0-1.el6.i686.rpm
warning:
libproxy-0.3.0-1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID
f21541eb: NOKEY
error: Failed dependencies:
libproxy-b ......