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

LinuxÎļþ²éÕÒÃüÁîfind,xargsÏêÊö

תÌùµØÖ·£ºhttp://www.linuxsir.org/main/?q=node/137
×ܽ᣺
zhy2111314
À´×Ô£º
LinuxSir.Org
ÕûÀí£º
±±ÄÏÄϱ±
ͻ񻣼
±¾ÎÄÊÇfind ÃüÁîµÄÏêϸ˵Ã÷£¬¿É¹óµÄÊÇÕë¶Ô²ÎÊý¾ÙÁ˺ܶàµÄʵÀý£¬´óÁ¿µÄÀýÖ¤£¬ÈóõѧÕ߸üΪÈÝÒ×Àí½â£»±¾ÎÄÊÇzhyflyÐÖÌùÔÚÂÛ̳ÖУ»ÎÒ¶Ô±¾ÎĽøÐÐÁËÔÙ´ÎÕûÀí£¬Îª·½±ã´ó¼ÒÔĶÁ£»
Ŀ¼
°æȨÉùÃ÷
Ç°ÑÔ£º¹ØÓÚfindÃüÁî
Ò»¡¢find ÃüÁî¸ñʽ
1¡¢findÃüÁîµÄÒ»°ãÐÎʽΪ£»
2¡¢findÃüÁîµÄ²ÎÊý£»
3¡¢findÃüÁîÑ¡Ï
4¡¢Ê¹ÓÃexec»òokÀ´Ö´ÐÐshellÃüÁ
¶þ¡¢findÃüÁîµÄÀý×Ó£»
1¡¢²éÕÒµ±Ç°Óû§Ö÷Ŀ¼ÏµÄËùÓÐÎļþ£»
2¡¢ÎªÁËÔÚµ±Ç°Ä¿Â¼ÖÐÎļþÊôÖ÷¾ßÓжÁ¡¢Ð´È¨ÏÞ£¬²¢ÇÒÎļþËùÊô×éµÄÓû§ºÍÆäËûÓû§¾ßÓжÁȨÏÞµÄÎļþ£»
3¡¢ÎªÁ˲éÕÒϵͳÖÐËùÓÐÎļþ³¤¶ÈΪ0µÄÆÕͨÎļþ£¬²¢ÁгöËüÃǵÄÍêÕû·¾¶£»
4¡¢²éÕÒ/var/logsĿ¼Öиü¸Äʱ¼äÔÚ7ÈÕÒÔÇ°µÄÆÕͨÎļþ£¬²¢ÔÚɾ³ý֮ǰѯÎÊËüÃÇ£»
5¡¢ÎªÁ˲éÕÒϵͳÖÐËùÓÐÊôÓÚroot×éµÄÎļþ£»
6¡¢findÃüÁɾ³ýµ±Ä¿Â¼ÖзÃÎÊʱ¼äÔÚ7ÈÕÒÔÀ´¡¢º¬ÓÐÊý×Öºó׺µÄadmin.logÎļþ
7¡¢ÎªÁ˲éÕÒµ±Ç°ÎļþϵͳÖеÄËùÓÐĿ¼²¢ÅÅÐò£»
8¡¢ÎªÁ˲éÕÒϵͳÖÐËùÓеÄrmt´Å´øÉ豸£»
Èý¡¢xargs
ËÄ¡¢find ÃüÁîµÄ²ÎÊý£»
1¡¢Ê¹ÓÃnameÑ¡Ïî
2¡¢ÓÃpermÑ¡Ïî
3¡¢ºöÂÔij¸öĿ¼
4¡¢Ê¹ÓÃfind²éÕÒÎļþµÄʱºòÔõô±Ü¿ªÄ³¸öÎļþĿ¼
5¡¢Ê¹ÓÃuserºÍnouserÑ¡Ïî
6¡¢Ê¹ÓÃgroupºÍnogroupÑ¡Ïî
7¡¢°´ÕÕ¸ü¸Äʱ¼ä»ò·ÃÎÊʱ¼äµÈ²éÕÒÎļþ
8¡¢²éÕÒ±Èij¸öÎļþлò¾ÉµÄÎļþ
9¡¢Ê¹ÓÃtypeÑ¡Ïî
10¡¢Ê¹ÓÃsizeÑ¡Ïî
11¡¢Ê¹ÓÃdepthÑ¡Ïî
12¡¢Ê¹ÓÃmountÑ¡Ïî
Îå¡¢¹ØÓÚ±¾ÎÄ
Áù¡¢Ïà¹ØÎĵµ
+++++++++++++++++++++++++++++++++++++++++++++++++
ÕýÎÄ
+++++++++++++++++++++++++++++++++++++++++++++++++
°æȨÉùÃ÷
±¾ÎÄÊÇzhyflyÐÖÌùÔÚLinuxSir.Org µÄÒ»¸öÌû×Ó¶øÕûÀí³öÀ´µÄ£¬Èç¹ûÄú¶Ô°æȨÓÐÒÉÎÊ£¬ÇëÔÚ±¾ÌûºóÃæ¸úÌû¡£Ð»Ð»£»±¾ÎĵÄHTML°æ±¾Óɱ±ÄÏÄϱ±ÕûÀí£»ÐÞ¸ÄÁËÕûƪÎĵµµÄÈ«½Ç¼°ËµÃ÷ÎÄ×ÖÖеĵ¥´ÊÖÐÿ¸ö×Öĸ¿Õ¸ñµÄÎÊÌ⣻Ϊ±êÌâ¼ÓÁ˱àºÅ£¬·½±ã´ó¼ÒÔĶÁ£»
Ç°ÑÔ£º¹ØÓÚfindÃüÁî
ÓÉÓÚfind¾ßÓÐÇ¿´óµÄ¹¦ÄÜ£¬ËùÒÔËüµÄÑ¡ÏîÒ²ºÜ¶à£¬ÆäÖд󲿷ÖÑ¡ÏֵµÃÎÒÃÇ»¨Ê±¼äÀ´Á˽âһϡ£¼´Ê¹ÏµÍ³Öк¬ÓÐÍøÂçÎļþϵͳ( NFS)£¬findÃüÁîÔÚ¸ÃÎļþϵͳÖÐͬÑùÓÐЧ£¬Ö»Äã¾ßÓÐÏàÓ¦µÄȨÏÞ¡£
ÔÚÔËÐÐÒ»¸ö·Ç³£ÏûºÄ×ÊÔ´µÄfindÃüÁîʱ£¬ºÜ¶àÈ˶¼ÇãÏòÓÚ°ÑËü·ÅÔÚºǫִ́ÐУ¬ÒòΪ±éÀúÒ»¸ö´óµÄÎļþϵͳ¿ÉÄܻỨ·ÑºÜ³¤µÄʱ¼ä(ÕâÀïÊÇÖ¸30G×Ö½ÚÒÔÉϵÄÎļþϵͳ)¡£
Ò»¡¢find ÃüÁî¸ñʽ
1¡¢findÃüÁîµ


Ïà¹ØÎĵµ£º

LinuxϵĿâ

LinuxϵĿâ--ÖØÒªµÄ´úÂ븴ÓûúÖÆ¡¾×ª¡¿
2008-03-26 17:57
±¾ÎÄÖ÷Òª½â¾öÒÔϼ¸¸öÎÊÌâ
1 ΪʲôҪʹÓÿ⣿
2 ¿âµÄ·ÖÀà
3 ´´½¨×Ô¼ºµÄ¿â
»òÐí´ó¼Ò¶Ô×Ô¼º³õѧ
linuxʱµÄÇéÐÎÈÔ¼ÇÒäÓÈаɡ£Èç¹ûûÓÐÒ»¸öÄܽϺõĽâ¾öÒÀÀµ¹ØϵµÄ°ü¹ÜÀíÆ÷£¬ÔÚlinuxÏ°²×°Èí¼þ½«ÊÇÒ»¼þ¼°ÆäÍ´¿àµÄ¹¤×÷¡£Äã×°a°üʱ£¬¿ÉÄÜ»áÌáʾ
ÄãÒªÏÈ×°b°ü£¬ ......

¡¾Linux×ÀÃæÓ¦Óá¿Linux·þÎñÅäÖùý³Ì

1)¹Ø±Õ·À»ðǽ
#service iptables stop<enter> \\¹Ø±Õ·À»ðǽ
#chkconfig iptables off<enter> \\¹Ø±Õ¿ª»úÆô¶¯
2)IPµØÖ·µÄÅäÖÃ
¢ÙÃüÁʽ
#netconfig<enter>  \\ÉèÖÃIPµØÖ·¡¢×ÓÍøÑÚÂë¡¢Íø¹Ø¡¢DNS
#vi /etc/sysconfig/network \\Ö÷»úÃû
#hostname XXX   \\ÉèÖÃÖ÷»úÃû³Æ
#exit  ......

linuxÎļþϵͳÖмì²âUÅ̹ÒÔØȫȨ½²½â

ÀïѧϰlinuxÎļþϵͳ¼¼ÇÉ£¬¹ÒÔØUÅÌÊÇ·ñÁ¬½ÓµÄ¼¼ÇÉ£¬ÎÄÖÐÒÔ°¸Àý½²½â¡£ÍûÄܸø´ó¼Ò´øÀ´Ð¡Ð¡µÄ°ïÖú¡£
LinuxÎļþϵͳÊÇÒì²½µÄ£¬Ò²¾ÍÊÇ˵дһ¸öÎļþ²»ÊÇÁ¢¿Ì±£´æµ½½éÖÊ£¨Ó²ÅÌ£¬UÅ̵ȣ©ÖУ¬¶øÊÇ´æµ½»º³åÇøÄÚ£¬µÈ»ýÀÛµ½Ò»¶¨³Ì¶ÈÔÙÒ»Æð±£´æµ½½éÖÊÖС£Èç¹ûûÓÐumount¾Í·Ç·¨°Î³ö UÅÌ£¬³ÌÐòÊDz»ÖªµÀµÄ£¬fopen,fwriteµÈº¯Êý¶¼ÒÀÈ»·µ»ØÕý ......

Linux USBÇý¶¯¿ò¼Ü·ÖÎö(ת£©

Linux USBÇý¶¯¿ò¼Ü·ÖÎö£¨Ò»£©
    ³õ´Î½Ó´¥ÓëOSÏà¹ØµÄÉ豸Çý¶¯±àд£¬¸Ð¾õ»¹Í¦ÓÐÒâ˼µÄ£¬ÎªÁ˲»ÖÁÓÚÍüµô¿´¹ýµÄ¶«Î÷£¬±Ê¼Ç¸ú×ܽᵱȻ²»¿Éȱ£¬¸üºÎ¿öÎÒ¾ö¶¨ÎªÇ¶ÈëʽÂôÃüÁË¡£ºÃ£¬ÑÔ¹éÕý´«£¬ÎÒ˵һ˵Õâ¶Îʱ¼äµÄÊÕ»ñ£¬¸ú´ó¼Ò·ÖÏíÒ»ÏÂLinuxµÄÇý¶¯¿ª·¢¡£µ«Õâ´ÎÖ»ÏÈÕë¶ÔLinuxµÄUSB×Óϵͳ×÷·ÖÎö£¬ÒòΪÖÜÎåÑÐÌÖÀÏ°å´ß» ......

Linux²Ù×÷ϵͳϵĶàÏ̱߳à³ÌÏêϸ½âÎö£¨1£©


    zieckey £¨zieckey£Àyahoo.com.cn£©
    Ị̈߳¨thread£©¼¼ÊõÔçÔÚ60Äê´ú¾Í±»Ìá³ö£¬µ«ÕæÕýÓ¦ÓöàÏ̵߳½²Ù×÷ϵͳÖÐÈ¥£¬ÊÇÔÚ80Äê´úÖÐÆÚ£¬solarisÊÇÕâ·½ÃæµÄٮٮÕß¡£´«Í³µÄUnixÒ²Ö§³ÖÏ̵߳ĸÅÄµ«ÊÇÔÚÒ»¸ö½ø³Ì£¨process£©ÖÐÖ»ÔÊÐíÓÐÒ»¸öỊ̈߳¬ÕâÑù¶àÏ߳̾ÍÒâζ×Ŷà½ø³Ì¡£
ÏÖÔÚ£¬¶àÏ̼߳ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ