date: write error: No space left on device

2019-07-08 17:37:24 浏览数 (1)

磁盘空间已用尽,需要删除文件。

1.查看磁盘使用情况

代码语言:javascript复制
[root@jr-yfb-ng_tm-10-94 usr]# df -h

2.查找使用目录下大于某个阈值的文件大小

代码语言:javascript复制
[root@jr-yfb-ng_tm-10-94 usr]# find . -size  200M

具体如下:

代码语言:javascript复制
[root@jr-yfb-ng_tm-10-94 usr]# 
date: write error: No space left on device
[root@jr-yfb-ng_tm-10-94 usr]# 
date: write error: No space left on device
[root@jr-yfb-ng_tm-10-94 usr]# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root  190G  190G   20K 100% /
devtmpfs                 3.9G     0  3.9G   0% /dev
tmpfs                    3.9G     0  3.9G   0% /dev/shm
tmpfs                    3.9G  193M  3.7G   5% /run
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda1                497M  125M  373M  25% /boot
tmpfs                    783M     0  783M   0% /run/user/0
date: write error: No space left on device
[root@jr-yfb-ng_tm-10-94 usr]# find . -size  200M
./local/tomcat/tomcat_20170605.tgz
./local/tomcat/tomcat-mobile/logs/catalina.out
./local/tomcat/tomcat-supchain/webapps/WebReport-bak.tar
./local/tomcat/tomcat-redis-task/logs/catalina.out
./local/tomcat/tomcat-redis-task/logs/redis-quartz.log
./local/tomcat/tomcat-redis-task/logs/redis-quartz.2019-06-28.log
./local/tomcat/tomcat-redis-task/logs/redis-quartz.2019-06-29.log
./local/tomcat/tomcat-redis-task/logs/redis-quartz.2019-06-30.log
./local/tomcat/tomcat-redis-task/logs/redis-quartz.2019-07-01.log
./local/tomcat/tomcat-redis-task/logs/redis-quartz.2019-07-02.log
date: write error: No space left on device
[root@jr-yfb-ng_tm-10-94 usr]# 

0 人点赞