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

Linux Find ÃüÁָͨÄÏ

×÷ÕߣºSheryl Calish
¼òµ¥½éÉÜÕâÒ»ÎÞ´¦²»ÔÚµÄÃüÁîµÄÇ¿´óµÄ·½ÃæÒÔ¼°»ìÂҵķ½Ãæ¡£
2008 Äê 7 Ô·¢²¼
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 ÃüÁî¡£


Ïà¹ØÎĵµ£º

linux Ï kmplayer °²×°¡£¡£

yum-protectbaseÔÚCentOS 5°ü²Ö¿âÀïÃæÓÐÌṩ:
#yum install yum-protectbase
ÔÚCentOS 5ÀïÃæÕâ¸ö²å¼þĬÈÏÆô¶¯ .
±à¼­/etc/yum.repos.d/CentOS-Base.repo ,
ÔÚ [base]
¡¢[update]
¡¢[centosplus]
¶ÎÄ©¼ÓÉÏÒ»ÐÐ:
protect=1
Èà [centosplus] ¶ÎʧЧÈçÏÂ:
enabled=0
±à¼­/etc/yum.repos.d/CentOS-Base.repo £¬
Ô ......

LINUXÆÚÄ©¸´Ï° Îļþ´¦Àí

Ò»¡¢LINUXÎļþ½á¹¹ ¢ÙÎļþ
  Ϊ²Ù×÷ϵͳ·þÎñ¡¢É豸·ÃÎÊÌṩÁ˼òµ¥¶øͳһµÄ½Ó¿Ú¡£ÎļþÊý¾Ý½á¹¹°üÀ¨ÎļþÃû×Ö¡¢´´½¨ÈÕÆÚ¡¢·ÃÎÊȨ¡¢Îļþ³¤¶ÈµÈ£¬ÕâЩÊý¾Ý¶¼±£´æÔÚÎÒÃdzÆ֮Ϊ ½Úµã ÖС£
¢ÚÉ豸
  Ó²¼þÔÚLINUX/UNIXÖÐͨ³£ÊDZ»Ó³Éä³ÉÎļþµÄ£¬ÕâÔÚǶÈëʽµ±ÖÐÊÇÊ®·ÖÖØÒªµÄ¡£
  ¼¸¸öÖØÒªµÄÉè± ......

LinuxÃüÁÍü

1. xhost hostname Æô¶¯/Ìí¼ÓxwindowȨÏÞ,·ñÔò±¨´í
2. °²×°Oracle10g,Èç¹û²»ÉèÖÃORACLE_SID»òÕßûÓÐexport,µÇ¼ʱÌáʾORA-12162: TNS:net service name is incorrectly specified
3.groupadd
4.useradd -g groupname username
5.cat /etc/group ²é¿´Óû§×é
6.id usename ²é¿´Óû§×éµÈÊôÐÔ
7.Oracle 10g Æô¶¯ 1) lsnc ......

linuxÄÚºËÄ£¿é½âÎö


Linux ¾ÍÊÇͨ³£Ëù˵µÄµ¥Äںˣ¨monolithic kernel£©£¬¼´²Ù×÷ϵͳµÄ´ó²¿·Ö¹¦Äܶ¼±»³ÆΪÄںˣ¬²¢ÔÚÌØȨģʽÏÂÔËÐС£ËüÓë΢ÐÍÄںˠ²»Í¬£¬ºóÕßÖ»°Ñ»ù±¾µÄ¹¦ÄÜ£¨½ø³Ì¼äͨÐÅ [IPC]¡¢µ÷¶È¡¢»ù±¾µÄÊäÈë/Êä³ö [I/O] ºÍÄÚ´æ¹ÜÀí£©µ±×÷ÄÚºËÔËÐУ¬¶ø°ÑÆäËû¹¦ÄÜ£¨Çý¶¯³ÌÐò¡¢ÍøÂç¶ÑÕ»ºÍÎļþϵͳ£©ÅųýÔÚÌØȨ¿Õ¼äÖ®Íâ¡£Òò´Ë£¬Äú¿ÉÄÜÈ ......

ÇÉÓÃcfengine¹ÜÀílinux·þÎñÆ÷(ת)

cfengine£¨ÅäÖÃÒýÇ棩ÊÇÒ»ÖÖ UNIX ¹ÜÀí¹¤¾ß£¬ÆäÄ¿µÄÊÇʹ¼òµ¥µÄ¹ÜÀíµÄÈÎÎñ×Ô¶¯»¯£¬Ê¹À§ÄѵÄÈÎÎñ±äµÃ½ÏÈÝÒס£Cfengine
ÊÊÓÃÓÚ¹ÜÀí¸÷ÖÖ»·¾³£¬´Óһ̨Ö÷»úµ½ÉÏÍǫ̀Ö÷»úµÄ»úȺ¾ù¿ÉʹÓᣵ½2.2 °æ±¾ÎªÖ¹£¬ÎÒÃÇÏÖÔÚËùÖªµÄÓÃÓÚÒ»°ãÐÔ¹ÜÀíµÄ×î´ó°²×°»úȺԼΪ20£¬000 ̨¡£
  Í¼-1 ÊÇCfengine µÄ×é³É²¿·ÖµÄ¹Øϵͼ ¡£
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ