Linux / dev / sda1 disk is full, clean-up methods

Turn: https: //blog.csdn.net/h_8410435/article/details/86303995

View memory usage

df -lh 

Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           789M  9.4M  780M   2% /run
/dev/sda1        28G   27G  6.1M 100% /
tmpfs           3.9G  248M  3.7G   7% /dev/shm
tmpfs           5.0M  8.0K  5.0M   1% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda7       404G  184G  200G  48% /home
tmpfs           789M  128K  789M   1% /run/user/1000
 

In both cases more

1. Check the / tmp share memory, you do not want to reboot, you can manually clean

2./var/log/syslog.1 share memory, clear

 

 
You can use the following command to delete a file 30 days money

sudo find /var/log/ -type f -mtime +30 -exec rm -f {} \;

3.

Linux system to clean up the garbage as well as the following command
sudo apt-get autoclean clean up old versions of the software cache
sudo apt-get clean clean up cache all software
orphaned software sudo apt-get autoremove delete the system no longer in use

Guess you like

Origin www.cnblogs.com/little-kwy/p/12299010.html