服务器无法命令补全或者无法vim保存

举报
孙中明 发表于 2022/01/22 22:34:40 2022/01/22
【摘要】 里面日志文件太多 需要删除 [root@VM-0-6-centos /]# du -sh /* 0 /bin 233M /boot 4.0K /data 0 /dev 40M /etc 64M /hom...

里面日志文件太多
需要删除

[root@VM-0-6-centos /]# du -sh /*
0	/bin
233M	/boot
4.0K	/data
0	/dev
40M	/etc
64M	/home
0	/lib
0	/lib64
16K	/lost+found
4.0K	/media
4.0K	/mnt
8.0K	/opt
du: cannot access ‘/proc/31893’: No such file or directory
du: cannot access ‘/proc/31894’: No such file or directory
du: cannot access ‘/proc/31905/task/31905/fd/4’: No such file or directory
du: cannot access ‘/proc/31905/task/31905/fdinfo/4’: No such file or directory
du: cannot access ‘/proc/31905/fd/4’: No such file or directory
du: cannot access ‘/proc/31905/fdinfo/4’: No such file or directory
0	/proc
35M	/root
90M	/run
0	/sbin
4.0K	/srv
0	/sys
32K	/tmp
2.3G	/usr
2.6G	/var
[root@VM-0-6-centos /]# du -sh /var/*
4.0K	/var/adm
185M	/var/cache
4.0K	/var/crash
20K	/var/db
8.0K	/var/empty
4.0K	/var/games
4.0K	/var/gopher
12K	/var/kerberos
635M	/var/lib
4.0K	/var/local
0	/var/lock
1.7G	/var/log
0	/var/mail
4.0K	/var/nis
4.0K	/var/opt
4.0K	/var/preserve
0	/var/run
165M	/var/spool
16K	/var/tmp
4.0K	/var/yp
[root@VM-0-6-centos /]# cd /var
[root@VM-0-6-centos var]# ls
adm  cache  crash  db  empty  games  gopher  kerberos  lib  local  lock  log  mail  nis  opt  preserve  run  spool  tmp  yp
[root@VM-0-6-centos var]# rm -rf l-bash: cannot create temp file for here-document: No space left on device
-bash: cannot create temp file for here-document: No space left on device

[root@VM-0-6-centos var]# 
[root@VM-0-6-centos var]# rm -rf ./log
[root@VM-0-6-centos var]# ls
adm  cache  crash  db  empty  games  gopher  kerberos  lib  local  lock  mail  nis  opt  preserve  run  spool  tmp  yp
[root@VM-0-6-centos var]# du -sh /usr/*
192M	/usr/bin
4.0K	/usr/etc
4.0K	/usr/games
9.1M	/usr/include
840M	/usr/lib
197M	/usr/lib64
61M	/usr/libexec
520M	/usr/local
52M	/usr/sbin
334M	/usr/share
98M	/usr/src
0	/usr/tmp
[root@VM-0-6-centos var]# ls 
adm/      crash/    empty/    gopher/   lib/      lock/     nis/      preserve/ spool/    .updated  
cache/    db/       games/    kerberos/ local/    mail/     opt/      run/      tmp/      yp/       
[root@VM-0-6-centos var]# ls 
adm/      crash/    empty/    gopher/   lib/      lock/     nis/      preserve/ spool/    .updated  
cache/    db/       games/    kerberos/ local/    mail/     opt/      run/      tmp/      yp/       
[root@VM-0-6-centos var]# ls 
adm/      crash/    empty/    gopher/   lib/      lock/     nis/      preserve/ spool/    .updated  
cache/    db/       games/    kerberos/ local/    mail/     opt/      run/      tmp/      yp/       
[root@VM-0-6-centos var]# ls 
adm/      crash/    empty/    gopher/   lib/      lock/     nis/      preserve/ spool/    .updated  
cache/    db/       games/    kerberos/ local/    mail/     opt/      run/      tmp/      yp/       
[root@VM-0-6-centos var]# ls 


  
 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86

文章来源: hiszm.blog.csdn.net,作者:孙中明,版权归原作者所有,如需转载,请联系作者。

原文链接:hiszm.blog.csdn.net/article/details/113769925

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。