The volume “Filesystem” has only 0 bytes disk space remaining on Linux Mint

使用命令我發現/var目錄吃掉了差不多57G! $ sudo du -s -h -x /* 另一個列出有關目錄所占空間的命令是 $ du / -hx –max-depth=1 列出特定目錄下的目錄和文件所佔的空間 $ sudo du -ah /foldername/subfoldername/ 刪除目錄 rm -rvf foldername 刪除文件 $ rm -f *.suffixname 在我刪除了/var中的如下内容之後,所有它占用的57G的空間全部歸還! /tmp/下的所有目錄 syslog文件 /installer/syslog文件 所有後綴為.log的文件 但是,在我重新開機啓動Ubuntu之後,發現/var/log/下面的日志文件又是超級大,一個叫著kern.log的文件尺寸為9.9G,另一個是syslog,尺寸8.8G。就是說,當我啓動Ubuntu之後,什麽都不做,日志文件就消耗掉大概20G的空間,簡直是太離譜了! Shrink syslog file size to 0: sudo truncate -s 0 /var/log/syslog And then, set its max size: Edit the syslog configuration file (/etc/rsyslog.conf or /etc/syslog-ng/syslog-ng.conf) and add or modify the following line to limit the size of the syslog file: $MaxFileSize 100M I installed Ubuntu 16.04 today and I noticed

This content is restricted to site members. If you are an existing user, please log in. New users may register below.

Existing Users Log In
   
New User Registration
Please indicate that you agree to the Terms of Service *
captcha
*Required field