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µã¡£
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
linuxµÄÎļþ°²×°Â·¾¶
2006Äê07ÔÂ15ÈÕ ÐÇÆÚÁù ÉÏÎç 11:09
Èç¹ûÊDZðÈË·¢²¼µÄ¶þ½øÖÆ°ü£¬¿ÉÖ´ÐÐÎļþͨ³£¶¼°²×°µ½ /usr/bin ÏÂÃ棻Èç¹ûÊÇ×Ô¼º´ÓÔ´´úÂë°²×°µÄ£¬¿ÉÖ´ÐÐÎļþͨ³£¶¼ÔÚ /usr/local/bin ÏÂÃ棬³ý·ÇÅäÖÃʱָ¶¨ÁË°²×°Î»Öá£
ÀýÈ磺
rpm -ivh xxx1.rpm
¿ÉÖ´ÐÐÎļþͨ³£¶¼°²×°µ½ /usr/bin ÏÂÃæ
./configure (»òÕß ......
»Æ Ïþ³¿
(huangxc@cn.ibm.com
), Èí¼þ¹¤³Ìʦ, IBM
·ë Èñ
(fengrui@cn.ibm.com
), Èí¼þ¹¤³Ìʦ, IBM
2008 Äê 7 ÔÂ 03 ÈÕ
±¾ÎĵÄÄ¿µÄÊÇÏë°ïÖú¶ÁÕßÀíÇå Linux 2.6ÖÐÎļþËøµÄ¸ÅÄîÒÔ¼°
Linux 2.6
¶¼ÌṩÁ˺ÎÖÖÊý¾Ý½á¹¹ÒÔ¼°¹Ø¼üµÄϵͳµ÷ÓÃÀ´ÊµÏÖÎļþËø£¬´Ó¶ø¿ÉÒÔ°ïÖú¶ÁÕ߸üºÃµØʹÓÃÎļþËøÀ´½â¾ö¶à¸ö½ø³Ì¶ÁÈ¡Í ......
²Î¿¼×ÊÁÏ£ºhttp://captain.javaeye.com/blog/104242
1¡¢Ê¹ÓÃAutofs×Ô¶¯¹ÒÔØ·ÖÇø
2¡¢ÐÞ¸Ä/etc/fstab
3¡¢±àдshell½Å±¾£¬¿ª»ú×Ô¶¯ÔËÐÐmountÃüÁî
·½·¨Ò»¡¢Ê¹ÓÃAutofs
1¡¢AutofsµÄÌص㣺AutofsÓëMount/UmountµÄ²»Í¬Ö®´¦ÔÚÓÚ£¬ËüÊÇÒ»ÖÖ¿´ÊسÌÐò£¨deamon£©¡£Èç¹ûËü¼ì²âµ½Óû§ÕýÊÔͼ·ÃÎÊÒ»¸öÉÐδ¹Ò½ÓµÄÎļþϵͳ£¬Ëü¾Í» ......