×ðÁú¿­Ê±¹ÙÍøµÇ¼

LinuxÖ¸ÁÉó²éÄ¿½ñĿ¼ÏµÄ×ÓĿ¼

ÔÚLinuxϵͳÖУ¬Éó²éÄ¿½ñĿ¼ÏµÄ×ÓĿ¼ÊÇÒ»Ïî³£¼ûµÄ²Ù×÷£¬¿ÉÒÔͨ¹ýʹÓÃһЩÌض¨µÄÏÂÁîÀ´ÊµÏÖ¡£±¾ÎĽ«ÏÈÈݼ¸ÖÖÔÚLinuxϵͳÖÐÉó²éÄ¿½ñĿ¼ÏµÄ×ÓĿ¼µÄÒªÁ죬ÒÔ¼°ÏêϸµÄ´úÂëʾÀý¡£

ÒªÁìÒ»£ºÊ¹ÓÃlsÏÂÁî

lsÏÂÁîÊÇLinuxϵͳÖÐ×î³£ÓõÄÉó²éÎļþºÍĿ¼µÄÏÂÁ¿ÉÒÔͨ¹ýÌí¼Ó²ÎÊýÀ´ÏÔʾĿ½ñĿ¼ÏµÄ×ÓĿ¼¡£Ïêϸ´úÂëʾÀýÈçÏ£º

ls -l

µÇ¼ºó¸´ÖÆ

ÉÏÊö´úÂë»áÁгöÄ¿½ñĿ¼ÏµÄËùÓÐÎļþºÍ×ÓĿ¼µÄÏêϸÐÅÏ¢£¬°üÀ¨È¨ÏÞ¡¢ËùÓÐÕß¡¢¾ÞϸµÈ¡£ÈôÊÇÖ»ÏëÏÔʾ×ÓĿ¼µÄÃû³Æ£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ

ls -l | grep '^d'

µÇ¼ºó¸´ÖÆ

ÕâÌõÏÂÁî»áɸѡ³öËùÓÐÒÔ”d”¿ªÍ·µÄÐУ¬¼´Ä¿Â¼¡£´Ó¶øÖ»ÏÔʾĿ½ñĿ¼ÏµÄ×ÓĿ¼¡£

ÒªÁì¶þ£ºÊ¹ÓÃfindÏÂÁî

findÏÂÁîÊÇLinuxϵͳÖÐÓÃÀ´²éÕÒÎļþºÍĿ¼µÄÇ¿Ê¢¹¤¾ß£¬Ò²¿ÉÒÔ×ÊÖúÎÒÃÇÉó²éÄ¿½ñĿ¼ÏµÄ×ÓĿ¼¡£Ïêϸ´úÂëʾÀýÈçÏ£º

find . -type d

µÇ¼ºó¸´ÖÆ

ÉÏÊö´úÂëÖУ¬.ÌåÏÖÄ¿½ñĿ¼£¬-type dÌåÏÖ²éÕÒÀàÐÍΪĿ¼¡£ÕâÌõÏÂÁî»áµÝ¹éµØÁгöÄ¿½ñĿ¼ÏµÄËùÓÐ×ÓĿ¼¡£

ÒªÁìÈý£ºÊ¹ÓÃtreeÏÂÁî

treeÏÂÁî¿ÉÒÔÒÔÊ÷״ͼµÄ·½·¨Õ¹Ê¾Ä¿Â¼½á¹¹£¬ºÜÊÇÖ±¹Û¡£Ïêϸ´úÂëʾÀýÈçÏ£º

tree

µÇ¼ºó¸´ÖÆ

ÕâÌõÏÂÁî»áÒÔÊ÷״ͼÐÎʽÏÔʾĿ½ñĿ¼ÏµÄËùÓÐÎļþºÍ×ÓĿ¼£¬Ô½·¢ÇåÎúÖ±¹Û¡£

ÒªÁìËÄ£ºÊ¹ÓÃduÏÂÁî

duÏÂÁîÓÃÓÚÏÔʾÎļþ»òĿ¼ËùÕ¼ÓõĴÅÅ̿ռ䡣͎á-d²ÎÊý¿ÉÒÔÉó²éÄ¿½ñĿ¼ÏµÄ×ÓĿ¼¡£Ïêϸ´úÂëʾÀýÈçÏ£º

du -h --max-depth=1

µÇ¼ºó¸´ÖÆ

ÆäÖÐ-hÌåÏÖÒÔÈËÀà¿É¶ÁµÄÃûÌÃÏÔʾ£¬–max-depth=1ÌåÏÖÖ»Éó²éÒ»²ãÉî¶ÈµÄ×ÓĿ¼¡£

ÒÔÉϾÍÊÇÔÚLinuxϵͳÖÐÉó²éÄ¿½ñĿ¼ÏµÄ×ÓĿ¼µÄ¼¸ÖÖÒªÁì¼°¶ÔÓ¦µÄ´úÂëʾÀý¡£Ï£Íû¶ÔÄúÓÐËù×ÊÖú£¡

ÒÔÉϾÍÊÇLinuxÖ¸ÁÉó²éÄ¿½ñĿ¼ÏµÄ×ÓĿ¼µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

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

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

QR code
ÍøÕ¾µØͼ