×ðÁú¿­Ê±

ÖØÐÂѧÆð£ºÕÆÎÕLinuxÏÂÁîÖеÄͨÅä·û

ÖØÐÂѧÆð£ºÕÆÎÕLinuxÏÂÁîÖеÄͨÅä·û

ÔÚLinuxϵͳÖÐ £¬Í¨Åä·ûÊÇÒ»ÖÖÓÃÓÚÆ¥ÅäÎļþÃûµÄÌØÊâ×Ö·û¡£ÕÆÎÕÕâЩͨÅä·û¿ÉÒÔ×ÊÖúÎÒÃǸü¸ßЧµØÔÚÏÂÁîÐÐÖж¨Î»ºÍ²Ù×÷Îļþ¡£±¾ÎĽ«ÖصãÏÈÈݼ¸ÖÖ³£ÓõÄLinuxͨÅä·û £¬²¢¸½´øÏêϸµÄ´úÂëʾÀý £¬Ï£Íû¿ÉÒÔ×ÊÖú³õѧÕ߸üºÃµØÃ÷È·ºÍÔËÓÃÕâЩͨÅä·û¡£

1. ÐǺţ¨*£©

ÐǺÅͨÅä·û´ú±íÁã¸ö»ò¶à¸öí§Òâ×Ö·û £¬¿ÉÒÔÆ¥Åäí§ÒⳤµÄ×Ö·û´®¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º

ls *.txt

µÇ¼ºó¸´ÖÆ

ÉÏÊöÏÂÁî»áÁгöÄ¿½ñĿ¼ÏÂËùÓÐÒÔ.txt×îºóµÄÎļþ¡£

2. Îʺţ¨?£©

ÎʺÅͨÅä·û´ú±íÒ»¸öí§Òâ×Ö·û £¬¿ÉÒÔÓÃÀ´Æ¥Åäµ¥¸ö×Ö·û¡£Ê¾Àý£º

ls file?.txt

µÇ¼ºó¸´ÖÆ

ÉÏÃæµÄÏÂÁî»áÁгöÎļþÃûΪfile1.txt¡¢file2.txtµÈµÄÎļþ¡£

3. ÖÐÀ¨ºÅ£¨[]£©

ÖÐÀ¨ºÅͨÅä·ûÓÃÓÚÆ¥ÅäÖ¸¶¨¹æÄ£ÄÚµÄ×Ö·û¡£ÀýÈç £¬ÒªÆ¥Åäí§ÒâÒ»¸öÊý×Ö £¬¿ÉÒÔʹÓãº

ls file[0-9].txt

µÇ¼ºó¸´ÖÆ

ÉÏÊöÏÂÁî»áÁгöÎļþÃûΪfile0.txt¡¢file1.txtµÈµÄÎļþ¡£

4. »¨À¨ºÅ£¨{}£©

»¨À¨ºÅͨÅä·ûÓÃÓÚÌìÉú¶à¸ö×Ö·û´®µÄ×éºÏ¡£ÀýÈç £¬ÈôÊÇҪͬʱ²Ù×÷file1.txtºÍfile2.txtÕâÁ½¸öÎļþ £¬¿ÉÒÔʹÓãº

cp file{1,2}.txt new_directory/

µÇ¼ºó¸´ÖÆ

ÉÏÃæµÄÏÂÁî»á½«file1.txtºÍfile2.txt¸´ÖƵ½new_directory/Ŀ¼ÖС£

ÔÚÏÖʵӦÓÃÖÐ £¬ÍŽá¶àÖÖͨÅä·û¿ÉÒÔ¸üÎÞаµØÆ¥ÅäºÍ²Ù×÷Îļþ¡£ÀýÈç £¬ÒªÁгöËùÓÐÒÔ×Öĸ¿ªÍ·µÄ.txtÎļþ £¬¿ÉÒÔÍŽáʹÓÃÐǺźÍÖÐÀ¨ºÅͨÅä·û£º

ls [a-z]*.txt

µÇ¼ºó¸´ÖÆ

ÉÏÊöÏÂÁî»áÁгöÎļþÃûÒÔСд×Öĸ¿ªÍ·ÇÒÒÔ.txt×îºóµÄÎļþ¡£

ÔÚʹÓÃͨÅä·ûʱ £¬ÐèҪעÖØͨÅä·ûÕö¿ªµÄ˳ÐòºÍλÖà £¬È·±£Æ¥Åäµ½ÆÚÍûµÄÎļþ¡£±ðµÄ £¬Í¨Åä·û»¹¿ÉÒÔÓÃÔÚÆäËûLinuxÏÂÁîÖÐ £¬Èçcp¡¢rmµÈ £¬×ÊÖú¾ÙÐÐÅúÁ¿²Ù×÷¡£

Ï£Íûͨ¹ý±¾ÎĵÄÏÈÈݺÍʾÀý £¬¶ÁÕßÄܹ»¸üºÃµØÃ÷È·ºÍÕÆÎÕLinuxÏÂÁîÖеÄͨÅä·û £¬Ìá¸ßÔÚÏÂÁîÐÐÖвÙ×÷ÎļþµÄЧÂÊ¡£Ï£Íû¶ÁÕß¿ÉÒÔÖØÐÂѧÆ𠣬һֱѵÁ· £¬¼ÓÉî¶ÔLinuxϵͳµÄÃ÷È·ºÍÓ¦Óá£

ÒÔÉϾÍÊÇÖØÐÂѧÆð£ºÕÆÎÕLinuxÏÂÁîÖеÄͨÅä·ûµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±ÊµÊ±ÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
¡¾ÍøÕ¾µØͼ¡¿¡¾sitemap¡¿