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

LinuxÖж¨Î»¡¢²éÕÒÎļþµÄÃüÁî

which Óï·¨ which command ˵Ã÷ ÒÀÐò´Ópath»·¾³±äÁ¿ËùÁеÄĿ¼ÖÐÕÒ³öcommandµÄλÖ㬲¢ÏÔʾÍêÕû·¾¶µÄÃû³Æ¡£ÔÚÕÒµ½µÚÒ»¸ö·ûºÏÌõ¼þµÄ³ÌÐòÎļþʱ£¬¾ÍÁ¢¿ÌÍ£Ö¹ËÑË÷£¬Ê¡ÂÔÆäÓàδËÑË÷Ŀ¼¡£ ·¶Àý£¬ÕÒ³ölsÃüÁîµÄ³ÌÐòÎļþµÄλÖ㺠which ls ϵͳÊä³ö£º /usr/bin/ls whereis Óï·¨ whereis [option] name ˵Ã÷ ÕÒ³öÌض¨³ÌÐòµÄ¿ÉÖ´ÐÐÎļþ¡¢Ô´´úÂëÎļþÒÔ¼°manpageµÄ·¾¶¡£ÄãËùÌṩµÄname»á±»ÏȳýȥǰÖõÄ·¾¶ÒÔ¼°ÈκÎ.extÐÎʽµÄÀ©Õ¹Ãû¡£ whereis Ö»»áÔÚ±ê×¼µÄLinuxĿ¼ÖнøÐÐËÑË÷¡£ ³£ÓÃÑ¡Ïî -b Ö»ËÑË÷¿ÉÖ´ÐÐÎļþ¡£ -m Ö»ËÑË÷manpage¡£ -s Ö»ËÑË÷Ô´´úÂëÎļþ¡£ -B directory ¸ü¸Ä»òÏÞ¶¨ËÑË÷¿ÉÖ´ÐеÄÎļþµÄĿ¼¡£ -M directory ¸ü¸Ä»òÏÞ¶¨ËÑË÷manpageµÄĿ¼¡£ -S directory ¸ü¸Ä»òÏÞ¶¨ËÑË÷Ô´´úÂëÎļþµÄĿ¼¡£ find Óï·¨ find paths expression [action] ˵Ã÷ ÒÔpathsΪËÑË÷ÆðµãÖð²ãÍùÏÂÕÒ³öÿһ¸ö·ûºÏexpressionÌõ¼þµÄÎļþ£¬²¢¶Ô¸ÃÎļþÖ´ÐÐactionËù´ú±íµÄ¶¯×÷¡£expressionÊÇËÑË÷Ìõ¼þ£¬ËüÓÉÒ»¸ö´ú±íÆ¥ÅäÏîÄ¿µÄÑ¡ÏîÒÔ¼°Ò»¸ö´ú±íÆ¥ÅäģʽµÄ²ÎÊý¹¹³É¡£ actionÊÇ´¦Àí¶¯×÷£¬ËüÓÐÒ»¸ö´ú±í¡°´¦Àí·½Ê½¡±µÄÑ¡ÏîÒÔ¼°Ò»¸ö²Ù×÷²ÎÊý¹¹³É¡£Èô²»Ö¸¶¨action£¬ÔòĬÈ϶¯×÷ÊÇÏÔʾ³öÎļþÃû¡£ ³£ÓõÄËÑË÷Ìõ¼þ -name pattern
-path pattern
-lname pattern ÕÒ³öÃû³Æ¡¢Â·¾¶Ãû³Æ»ò·ûºÅÁ´½ÓµÄÄ¿±êÆ¥ÅäpatternģʽµÄÎļþ¡£pattern¿ÉÒÔ°üº¬shellµÄÎļþÃûͨÅä·û£¬Â·¾¶ÊÇÏà¶ÔÓÚËÑË÷ÆðµãµÄ¡£ ³£¼û´¦Àí¶¯×÷ -print ÏÔʾ³öÎļþµÄÏà¶Ô·¾¶£¨Ïà¶ÔÓÚËÑË÷Æðµã£©¡£ -exec cmd \; Ö´ÐÐÖ¸¶¨µÄshellÃüÁî¡£Èôcmdº¬ÓÐÈκÎshellÌØÊâ×Ö·û£¬ÔòËûÃÇ֮ǰ¶¼±ØÐë¼ÓÉÏ\·ûºÅ£¬ÒÔÃâshellÁ¢¿ÌÖ´ÐÐËûÃÇ¡£ÔÚcmdÀ¿ÉÒÔÓá±{}¡±·ûºÅ(°üÀ¨Ë«ÒýºÅ)±íʾfindËùÕÒ³öµÄÎļþ¡£ locate Óï·¨ locate patterns ˵Ã÷ µÚÒ»´ÎÖ´ÐÐlocateʱ£¬Ëü»á½¨Á¢Ò»¸öË÷ÒýÊý¾Ý¿â£¬µ±ÍùºóÔÙ´ÎÖ´ÐÐʱ£¬Ëü±ã´ÓË÷ÒýÊý¾Ý¿âÖÐѸËÙÕÒ³öÎļþµÄλÖá£locateºÜÊʺÏÓÃÀ´·´¸´ËÑË÷ºÜÉٱ䶯µÄĿ¼Ê÷£¬µ«ÊǶÔÓÚ¸Õ¸ÄÃûµÄ¾ÉÎļþÒÔ¼°Ð½¨µÄÎļþ£¬locate¾ÍÕÒ²»µ½ÁË£¬³ý·ÇÖؽ¨Êý¾Ý¿â¡£ updatedb Óï·¨ updatedb [option] ˵Ã÷ ¸üÐÂslocateµÄË÷ÒýÊý¾Ý¿â¡£ Ñ¡Ïî -e directories ÂÔ¹ýdirectoriesËùÁеÄĿ¼¡£


Ïà¹ØÎĵµ£º

linuxÏÂÒ»¸öºÃÍæµÄ×Ô½âѹ½Å±¾

Öܺ£ºº /ÎÄ
2010.4.22
¿´¼¯ÈºµÄ¶«Î÷ʱÎÞÒâÖп´µ½¼¸ÄêÇ°Á÷Ðеķֲ¼Ê½¿Æѧ¼ÆËãseti@home£¬ÃÀ¹ú²®¿ËÀû´óѧµÈ¿Æѧ½çÓÃÓÚ¼ÆËãÌìÌåÊý¾ÝµÄ¡£SETI@home ÊÇÒ»ÏîÀûÓÃÈ«ÇòÁªÍøµÄ¼ÆËã»ú¹²Í¬ËÑÑ°µØÍâÎÄÃ÷£¨SETI£©µÄ¿ÆѧʵÑé¼Æ»®¡£Äã¿ÉÒÔͨ¹ýÔËÐÐÒ»¸öÃâ·Ñ³ÌÐòÏÂÔز¢·ÖÎö´ÓÉäµçÍûÔ¶¾µ´«À´µÄÊý¾ÝÀ´¼ÓÈëÕâ¸öÏîÄ¿¡£ ²»¹ýÎÒÔÙ´ÎʹÓÃÆä¿Í»§¶ËÊ ......

linuxÕýÔò±í´ïʽ grep egrepÓ÷¨


&&
ÃüÁî1 && ÃüÁî2     Èç¹ûÕâ¸öÃüÁî1Ö´Ðгɹ¦& &ÄÇôִÐÐÕâ¸öÃüÁîÃü2
mv myfile myfile2 && echo "if you are seeing this then mv was success!"
|| 
Èç¹û| |×ó±ßµÄÃüÁÃüÁî1£©Î´Ö´Ðгɹ¦£¬ÄÇô¾ÍÖ´ÐÐ| |ÓұߵÄÃüÁî(ÃüÁî2£©
mv myfile myfile2 & ......

linux ´®¿Ú±à³Ì

ÔÚǶÈëʽLinuxÖУ¬´®¿ÚÊÇÒ»¸ö×ÖÉ豸£¬·ÃÎʾßÌåµÄ´®Ðж˿ڵıà³ÌÓë¶Á£¯Ð´ÎļþµÄ²Ù×÷ÀàËÆ£¬Ö»Ðè´ò¿ªÏàÓ¦µÄÉ豸Îļþ¼´¿É²Ù×÷¡£´®¿Ú±à³ÌÌØÊâÔÚÓÚ´®¿ÚͨÐÅʱÏà¹Ø²ÎÊýÓëÊôÐÔµÄÉèÖá£Ç¶ÈëʽLinuxµÄ´®¿Ú±à³ÌʱӦעÒ⣬ÈôÔÚ¸ùÎļþÖÐûÓд®¿ÚÉ豸Îļþ£¬Ó¦Ê¹ÓÃmknodÃüÁî´´½¨£¬ÕâÕâÀï¼ÙÉè´®¿ÚÉ豸ÊÇ/dev/ttyS0£¬½éÉÜһϴ®¿ÚµÄ±à³Ì¹ý³Ì¡ ......

ʹÓÃDDD¿ª·¢ARM Linux³ÌÐò

ʹÓÃDDD+GDB¿ª·¢ARM Linux³ÌÐò
½ñÌìÓÖÈ¡µÃÁËһЩ½øÕ¹£¬¸Ï¿ìдÏÂÀ´ÒÔÃâ×Ô¼ºÍü¼Ç¡£
×Ô´ÓLinuxÔÚÎҵİå×ÓÉÏÅÜÆðÀ´Ö®ºó£¬ÎÒÒ»Ö±ÔÚÏëÒ»¸öÎÊÌ⣬Ôõôµ÷ÊÔ½«À´Ð´µÄ³ÌÐò¡£ÆäʵÎÒÔÚLinux¿ª·¢·½ÃæÕæµÃºÜÍâÐУ¬µ½Á˽ñÌì²ÅÖªµÀGDBµ½µ×ÊÇ ¸ÉʲôÓõģ¬ºÇºÇ¡£ÎÒÏàÐźܶàÈË´ÓBootloaderµ÷ÊÔ¿ªÊ¼Ò»Ö±¶¼Ê¹ÓÃLED°¡£¬printfÕâÑùµÄ·½·¨À´µ÷ÊÔ¡ ......

Ubuntu LinuxÏ嵀 Opera °²×°

ÏêÇéÇë·ÃÎÊ£ºhttp://deb.opera.com/
Opera
¹Ù·½Ô´£º
×îеİ汾:
deb http://deb.opera.com/opera/ unstable non-free
»òÕßÑ¡ÔñÎȶ¨µÄ°æ±¾£º
deb http://deb.opera.com/opera/ stable non-free
£¨ÐÞ¸Äsources.listÎļþÖÐÔ´µÄÁÐ±í£¬Ìí¼ÓOpera Ô´£©ÃüÁ
sudo gedit /etc/apt/sources.list
£¨±¸·Ýµ±Ç°µÄÔ´ÁÐ±í£© ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ