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

ÔÚLinuxϵͳÖÐûÓÐdufÏÂÁÔõÑùÓÐÓõØÖÎÀí´ÅÅÌ¿Õ¼ä £¿

ÎÊÌ⣺LinuxϵͳÖÐûÓÐdufÏÂÁÔõÑùÖÎÀí´ÅÅÌ¿Õ¼ä £¿

ÔÚLinuxϵͳÖУ¬ÖÎÀí´ÅÅÌ¿Õ¼äÊÇÒ»ÏîºÜÊÇÖ÷ÒªµÄʹÃü¡£Í¨³£ÎÒÃÇ»áʹÓÃһЩÏÂÁîÐй¤¾ßÀ´¼ì²é´ÅÅÌʹÓÃÇéÐΣ¬ºÃ±È³£¼ûµÄdfÏÂÁȻ¶ø£¬ÓÐʱ¼ä¿ÉÄÜ»áÓöµ½Ò»Ð©ÇéÐΣ¬ºÃ±ÈЧÀÍÆ÷ÉÏûÓÐ×°ÖÃdufÕâÑùµÄ¹¤¾ß£¬ÄÇô¸ÃÔõÑùÖÎÀí´ÅÅÌ¿Õ¼äÄØ £¿±¾ÎĽ«ÏÈÈÝһЩÌæ»»ÒªÁ죬²¢¸ø³öÏêϸµÄ´úÂëʾÀý¡£

ʹÓÃdfÏÂÁî

Ö»¹ÜûÓÐdufÏÂÁ¿ÉÊÇLinuxϵͳ×Ô´øµÄdfÏÂÁîÊǺܳ£ÓõĴÅÅÌ¿Õ¼äÖÎÀí¹¤¾ß¡£Í¨¹ýdfÏÂÁÄú¿ÉÒÔÇáËɵØÉó²é´ÅÅÌ·ÖÇøµÄʹÓÃÇéÐΡ£ÒÔÏÂÊÇʹÓÃdfÏÂÁîÀ´Éó²é´ÅÅÌ¿Õ¼äµÄʾÀý£º

df -h

µÇ¼ºó¸´ÖÆ

¸ÃÏÂÁÁгöËùÓйÒÔصĴÅÅÌ·ÖÇøÒÔ¼°ËüÃǵÄʹÓÃÇéÐΣ¬°üÀ¨ÒÑÓÿռ䡢¿ÉÓÿռ䡢ʹÓÃÂʵÈÐÅÏ¢¡£

ʹÓÃduÏÂÁî

ÁíÒ»¸ö³£ÓõĴÅÅÌ¿Õ¼äÖÎÀí¹¤¾ßÊÇduÏÂÁͨ¹ýduÏÂÁÄú¿ÉÒÔÉó²éÖ¸¶¨Ä¿Â¼»òÎļþµÄ´ÅÅÌʹÓÃÇéÐΡ£ÒÔÏÂÊÇʹÓÃduÏÂÁîÀ´Éó²éÖ¸¶¨Ä¿Â¼µÄ´ÅÅÌ¿Õ¼äÕ¼ÓÃÇéÐεÄʾÀý£º

du -h /path/to/directory

µÇ¼ºó¸´ÖÆ

¸ÃÏÂÁÁгöÖ¸¶¨Ä¿Â¼Ï¸÷¸ö×ÓĿ¼ºÍÎļþµÄ´ÅÅÌ¿Õ¼äÕ¼ÓÃÇéÐΡ£

ʹÓÃfindÏÂÁî

³ýÁËdfºÍduÏÂÁfindÏÂÁîÒ²ÊÇÒ»¸ö³£ÓõŤ¾ß£¬¿ÉÒÔ×ÊÖúÄú²éÕÒ²¢ÖÎÀí´ÅÅ̿ռ䡣ÒÔÏÂÊÇʹÓÃfindÏÂÁî²éÕÒ´óÎļþµÄʾÀý£º

find /path/to/directory -type f -size +100M

µÇ¼ºó¸´ÖÆ

¸ÃÏÂÁÔÚÖ¸¶¨Ä¿Â¼Ï²éÕÒ¾ÞϸÁè¼Ý100MBµÄÎļþ£¬²¢ÁгöËüÃǵÄÏêϸÐÅÏ¢¡£

ʹÓÃncduÏÂÁî

ÈôÊÇÄú¶ÔÏÂÁîÐв»·óÊìϤ£¬Ò²¿ÉÒÔʹÓÃncduÕâÑùµÄ½»»¥Ê½¹¤¾ßÀ´ÖÎÀí´ÅÅ̿ռ䡣ncdu¿ÉÒÔ×ÊÖúÄúÖ±¹ÛµØÏàʶ´ÅÅÌ¿Õ¼äµÄʹÓÃÇéÐΣ¬²¢¾ÙÐнøÒ»²½µÄ²Ù×÷¡£Äú¿ÉÒÔͨ¹ýÏÂÃæµÄÏÂÁîÀ´×°ÖúÍʹÓÃncdu£º

sudo apt-get install ncdu
ncdu /path/to/directory

µÇ¼ºó¸´ÖÆ

ÒÔÉÏÊÇһЩÔÚLinuxϵͳÖÐÖÎÀí´ÅÅÌ¿Õ¼äµÄ³£ÓÃÒªÁìºÍÏÂÁ×ÝȻûÓÐdufÕâÑùµÄ¹¤¾ß£¬ÄúÒ²¿ÉÒÔͨ¹ýÕâЩÌæ»»ÒªÁìÀ´ÇáËÉÖÎÀí´ÅÅ̿ռ䡣ϣÍûÕâЩ´úÂëʾÀýÄܶÔÄúÓÐËù×ÊÖú¡£

ÒÔÉϾÍÊÇÔÚLinuxϵͳÖÐûÓÐdufÏÂÁÔõÑùÓÐÓõØÖÎÀí´ÅÅÌ¿Õ¼ä £¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

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

18523999891

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

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

QR code
ÍøÕ¾µØͼ