Ïê½âLinuxÖг£¼ûµÄÌØÊâ·ûºÅ¼°Æä×÷ÓÃ
ÎÊÌ⣺ÉîÈëÆÊÎöLinuxÖг£¼ûµÄÌØÊâ·ûºÅ¼°Æä×÷ÓÃ
ÔÚLinuxϵͳÖУ¬ÌØÊâ·ûºÅÔÚÏÂÁîÐвÙ×÷ÖÐÊÎÑÝןÜÊÇÖ÷ÒªµÄ½ÇÉ«£¬ÕÆÎÕÕâЩÌØÊâ·ûºÅµÄʹÓÃÒªÁìÄܹ»¼«´óµØÌá¸ßÎÒÃÇÔÚLinuxÇéÐÎϵÄÊÂÇéЧÂÊ¡£±¾ÎĽ«ÏêϸÏÈÈÝLinuxÖг£¼ûµÄÌØÊâ·ûºÅ¼°Æä×÷Ó㬲¢¸½ÉÏÏêϸµÄ´úÂëʾÀý£¬×ÊÖú¶ÁÕ߸üºÃµØÃ÷È·ÕâЩ·ûºÅµÄÓ÷¨¡£
¹ÜµÀ·ûºÅ£¨|£©£º¹ÜµÀ·ûºÅÓÃÓÚÅþÁ¬Á½¸öÏÂÁ½«µÚÒ»¸öÏÂÁîµÄÊä³ö×÷ΪµÚ¶þ¸öÏÂÁîµÄÊäÈë¡£ÕâÑù¿ÉÒÔʵÏÖÏÂÁîÖ®¼äµÄÊý¾Ý´«Ê䣬ʵÏÖÊý¾Ý´¦ÀíÀú³ÌµÄÁ÷Ë®Ïßʽ²Ù×÷¡£
ʾÀý£º
ls -l | grep ".txt"
µÇ¼ºó¸´ÖÆ
ÒÔÉÏÏÂÁÁгöÄ¿½ñĿ¼ÏÂËùÓÐÒÔ”.txt”×îºóµÄÎļþ¡£
Öض¨Ïò·ûºÅ£¨>¡¢>>¡¢<£©£º
>£º½«ÏÂÁîµÄÊä³öÖض¨Ïòµ½Ö¸¶¨µÄÎļþ£¬ÈôÊÇÎļþ²»±£´æÔòн¨£¬ÈôÊDZ£´æÔòÁýÕÖÔÓÐÄÚÈÝ¡£
>>£º½«ÏÂÁîµÄÊä³ö×·¼Óµ½Ö¸¶¨µÄÎļþĩβ¡£
<£º½«Îļþ×÷ΪÊäÈëת´ï¸øÏÂÁî¡£
ʾÀý£º
ls > files.txt
µÇ¼ºó¸´ÖÆ
ÒÔÉÏÏÂÁĿ½ñĿ¼ÏµÄÎļþÁбíÊä³öµ½files.txtÎļþÖС£
ͨÅä·û£º
*£ºÆ¥ÅäÁã¸ö»ò¶à¸ö×Ö·û¡£
?£ºÆ¥Åäµ¥¸ö×Ö·û¡£
[]£ºÆ¥ÅäÀ¨ºÅÄÚµÄÈÎÒ»×Ö·û¡£
ʾÀý£º
ls *.txt
µÇ¼ºó¸´ÖÆ
ÒÔÉÏÏÂÁÁгöÄ¿½ñĿ¼ÏÂËùÓÐÒÔ”.txt”×îºóµÄÎļþ¡£
·´ÒýºÅ£¨“£©£ºÓÃÓÚ½«·´ÒýºÅÄÚµÄÏÂÁîÖ´ÐÐЧ¹û·µ»Ø¸øÍâÊÖÏÂÁî¡£
ʾÀý£º
echo "Today is `date`"
µÇ¼ºó¸´ÖÆ
ÒÔÉÏÏÂÁĿ½ñÈÕÆÚÊä³öµ½ÆÁÄ»ÉÏ¡£
ͨÅä·û£¨~£©£ºÌåÏÖÄ¿½ñÓû§µÄ¼ÒĿ¼¡£
ʾÀý£º
cd ~/Documents
µÇ¼ºó¸´ÖÆ
ÒÔÉÏÏÂÁ½øÈëÄ¿½ñÓû§µÄDocumentsÎļþ¼Ð¡£
Âß¼Ó루&&£©ºÍÂß¼»ò£¨||£©£ºÓÃÓÚÔÚÏÂÁîÐÐÖÐʵÏÖÌõ¼þÖ´ÐС£
ʾÀý£º
make && make install
µÇ¼ºó¸´ÖÆ
ÒÔÉÏÏÂÁÔÚ±àÒëÀֳɺóÖ´ÐÐ×°Öð취¡£
ͨ¹ý±¾ÎĵÄÏÈÈÝ£¬ÐÅÍжÁÕß¹ØÓÚLinuxÖг£¼ûµÄÌØÊâ·ûºÅ¼°Æä×÷ÓÃÓÐÁ˸üÉîÈëµÄÏàʶ¡£ÌØÊâ·ûºÅµÄÎÞаÔËÓÿÉÒÔ¼«´óµØ¼ò»¯ÏÂÁîÐвÙ×÷£¬Ìá¸ßÊÂÇéЧÂÊ¡£Ï£Íû¶ÁÕßͨ¹ý±¾ÎĵÄѧϰ£¬Äܹ»Ô½·¢ÊìÁ·µØÔËÓÃÕâЩÌØÊâ·ûºÅ£¬ÌáÉýÔÚLinuxϵͳϵÄÊÂÇéЧÂÊ¡£
ÒÔÉϾÍÊÇÏê½âLinuxÖг£¼ûµÄÌØÊâ·ûºÅ¼°Æä×÷ÓõÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡