linux ÖÐfindÃüÁîÏê½â
LinuxÖвéÕÒÎļþµÄÃüÁîͨ³£Îª“find”ÃüÁ“find”ÃüÁîÄÜ°ïÖúÎÒÃÇÔÚʹÓÃ, ¹ÜÀíLinuxµÄÈÕ³£ÊÂÎñÖз½±ãµÄ²éÕÒ³öÎÒÃÇÐèÒªµÄÎļþ¡£¶ÔÓÚLinuxÐÂÊÖÀ´Ëµ£¬“find” ÃüÁîÒ²ÊÇÁ˽âºÍѧϰLinuxÎļþÌصãµÄ·½·¨¡£ÒòΪLinux·¢Ðа汾·±¶à£¬°æ±¾Éý¼¶ºÜ¿ì£¬ ÔÚLinuxÊé¼®ÉÏÍùÍùдÃ÷ij¸öÅäÖÃÎļþµÄËùÔÚλÖã¬ÍùÍùLinuxÐÂÊÖ°´Í¼Ë÷æ÷»¹ÊDz»ÄÜ ÕÒµ½¡£±ÈÈç˵REDHAT Linux 7.OºÍREDHAT Linux 7.1ÖÐÓÐЩÖØÒªµÄÅäÖÃÎļþËùÔÚµÄÓ² ÅÌλÖúÍÎļþĿ¼¾ÍÓÐÁ˺ܴóµÄ¸Ä±ä£¬Èç¹û²»Ñ§»áʹÓÓfind”ÃüÁÄÇôÔÚ³ÉǧÉÏÍò µÄLinuxÎļþÖÐÒªÕÒµ½ÆäÖеÄÒ»¸öÅäÖÃÎļþÊÇÏ൱À§Äѵģ¬±ÊÕßÔÚûÓо«Í¨“find”Ãü Áî֮ǰ¾Í³Ô¹ýÕâÑùµÄ¿àÍ·¡£ºÃ£¬ÏÂÃæ¾ÍÏêϸΪ´ó¼Ò½éÉÜÇ¿´óµÄ“find”ÃüÁîµÄÈ«²¿Ê¹Óà ·½·¨ºÍÓÃ;¡£
ͨ¹ýÎļþÃû²éÕÒ·¨£º
Õâ¸ö·½·¨ËµÆðÀ´¾ÍºÍÔÚWINDOWSϲéÕÒÎļþÒ»ÑùÈÝÒ×Àí½âÁË¡£Èç¹ûÄã°ÑÕâ¸öÎļþ·ÅÔÚ µ¥¸öµÄÎļþ¼ÐÀïÃ棬ֻҪʹÓó£¼ûµÄ“ls"ÃüÁî¾ÍÄÜ·½±ãµÄ²éÕÒ³öÀ´£¬ÄÇôʹÓÓfind” ÃüÁîÀ´²éÕÒËü¾Í²»ÄܸøÄãÁôÏÂÉî¿ÌµÄÓ¡Ï󣬱Ͼ¹“find”ÃüÁîµÄÇ¿´ó¹¦Äܲ»Ö¹Õâ¸ö¡£Èç ¹ûÖªÁËij¸öÎļþµÄÎļþÃû£¬¶ø²»ÖªµÀÕâ¸öÎļþ·Åµ½ÄĸöÎļþ¼Ð£¬ÉõÖÁÊDzã²ãÌ×ǶµÄ Îļþ¼ÐÀï¡£¾ÙÀý˵Ã÷£¬¼ÙÉèÄãÍü¼ÇÁËhttpd.confÕâ¸öÎļþÔÚϵͳµÄÄĸöĿ¼Ï£¬ÉõÖÁ ÔÚϵͳµÄij¸öµØ·½Ò²²»ÖªµÀ£¬ÔòÕâÊÇ¿ÉÒÔʹÓÃÈçÏÂÃüÁ
find / -name httpd.conf
Õâ¸öÃüÁîÓï·¨¿´ÆðÀ´ºÜÈÝÒ×¾ÍÃ÷°×ÁË£¬¾ÍÊÇÖ±½ÓÔÚfindºóÃæдÉÏ -name£¬±íÃ÷ÒªÇó ϵͳ°´ÕÕÎļþÃû²éÕÒ£¬×îºóдÉÏhttpd.confÕâ¸öÄ¿±êÎļþÃû¼´¿É¡£ÉÔµÈÒ»»áϵͳ»á ÔÚ¼ÆËã»úÆÁÄ»ÉÏÏÔʾ³ö²éÕÒ½á¹ûÁÐ±í£º
etc/httpd/conf/httpd.conf
Õâ¾ÍÊÇhttpd.confÕâ¸öÎļþÔÚLinuxϵͳÖеÄÍêÕû·¾¶¡£²éÕҳɹ¦¡£
Èç¹ûÊäÈëÒÔÉϲéÕÒÃüÁîºóϵͳ²¢Ã»ÓÐÏÔʾ³ö½á¹û£¬ÄÇô²»ÒªÒÔΪϵͳûÓÐÖ´ÐÐ find/ -name httpd.confÃüÁ¶ø¿ÉÄÜÊÇÄãµÄϵͳÖÐûÓа²×°Apache·þÎñÆ÷£¬Õâʱ Ö»ÒªÄã°²×°ÁËApache Web·þÎñÆ÷£¬È»ºóÔÙʹÓÃfind / -name httpd.conf¾ÍÄÜÕÒµ½Õâ ¸öÅäÖÃÎļþÁË¡£
ÎÞ´íÎó²éÕÒ¼¼ÇÉ£º
ÔÚLinuxϵͳÖГfind”ÃüÁîÊÇ´ó¶àÊýϵͳÓû§¶¼¿ÉÒÔʹÓõÄÃüÁ²¢²»ÊÇROOTϵͳ¹ÜÀí Ô±µÄרÀû¡£µ«ÊÇÆÕͨÓû§Ê¹ÓÓfind”ÃüÁîʱҲÓпÉÄÜÓöµ½ÕâÑùµÄÎÊÌ⣬ÄǾÍÊÇLinuxϵ ͳÖÐϵͳ¹ÜÀíÔ±ROOT¿ÉÒÔ°ÑijЩÎļþĿ¼ÉèÖóɽûÖ¹·ÃÎÊģʽ¡£ÕâÑùÆÕͨÓû§¾ÍûÓРȨÏÞÓÓfind”ÃüÁîÀ´²éѯÕâЩĿ¼
Ïà¹ØÎĵµ£º
linuxÏÂÊÖ¶¯É¾³ýÊý¾Ý¿âʵÀý£¬Ö±½Óɾ³ýÏàÓ¦µÄĿ¼¾Í¿ÉÒÔÁË£¬²»¶à˵ÁË....
1. $ORACLE_HOME/dbs/
[oracle9@frogger dbs]$ pwd
/u01/app/oracle/product/9.2.0.1/dbs
[oracle9@frogger dbs]$ rm inittest02.ora
[oracle9@frogger dbs]$ rm orapwdtest02
2. $ORACLE_BASE/oradata/SID
[oracle9@frogger oradata]$ ......
²Î¿¼×ÊÁÏ£ºhttp://baike.baidu.com/view/400319.htm
¡¡LinuxϵͳϵĶàÏß³Ì×ñÑPOSIXÏ߳̽ӿڣ¬³ÆΪpthread¡£±àдLinuxϵĶàÏ̳߳ÌÐò£¬ÐèҪʹÓÃÍ·Îļþpthread.h£¬Á¬½ÓʱÐèÒª ʹÓÿâlibpthread.a¡£Ë³±ã˵һÏ£¬LinuxÏÂpthreadµÄʵÏÖÊÇͨ¹ýϵͳµ÷ÓÃclone£¨£©À´ÊµÏֵġ£clone£¨£©ÊÇLinuxËùÌØ ÓеÄϵͳµ÷Óã¬ËüµÄʹÓ÷½Ê½ÀàËÆ ......
²Î¿¼£º
http://longer.spaces.eepw.com.cn/articles/article/item/60415
http://imganquan.org/blog/?p=350
ÍøÉÏÕҵģ¬¹éÄÉһϣº
ÔÓÏîÉ豸£¨misc device£©
ÔÓÏîÉ豸ҲÊÇÔÚǶÈëʽϵͳÖÐÓõñȽ϶àµÄÒ»ÖÖÉ豸Çý¶¯¡£ÔÚ Linux Äں˵Äinclude\linuxĿ¼ÏÂÓÐMiscdevice.hÎļþ£¬Òª°Ñ×Ô¼º¶¨ÒåµÄmisc device´ÓÉ豸¶¨ÒåÔÚÕâÀï¡ ......
Ëæ×Å Linux ²Ù×÷ϵͳµÄ¹ã·ºÓ¦Óã¬ÌرðÊÇ Linux ÔÚǶÈëʽÁìÓòµÄ·¢Õ¹£¬Ô½À´Ô½¶àµÄÈË¿ªÊ¼Í¶Éíµ½ Linux Äں˼¶µÄ¿ª·¢ÖС£Ãæ¶ÔÈÕÒæÅÓ´óµÄ Linux ÄÚºËÔ´´úÂ룬¿ª·¢ÕßÔÚÍê³É×Ô¼ºµÄÄں˴úÂëºó£¬¶¼½«ÃæÁÙ×ÅͬÑùµÄÎÊÌ⣬¼´ÈçºÎ½«Ô´´úÂëÈÚÈëµ½ Linux ÄÚºËÖУ¬Ôö¼ÓÏàÓ¦µÄ Linux ÅäÖÃÑ¡Ï²¢×îÖÕ±»±àÒë½ø Linux Äںˡ£Õâ¾ÍÐèÒªÁ˽â Linu ......