网站首页技术博客
linux 查看磁盘空间
摘要-bash: cannot create temp file for here-document: No space left on device
登陆Linux系统后, cd 到某个指定目录时使用tab键的时候报以下错误:
-bash: cannot create temp file for here-document: No space left on device
原因: 不能创建临时文件文档,设备上没有剩余空间(告诉我们磁盘空间满了)
1.用命令df -h 查看硬盘空间
[root@instance-0pk09gjj ~]# df -h
2.查看哪个目录占用硬盘空间最大
[root@instance-0pk09gjj ~]# du -sh /*
3.一级一级向下查找大文件
[root@instance-0pk09gjj ~]# du -sh /home/*
4.找出最大文件
解决方案:
(1) 如果最大文件时日志文件或者备份文件可以清空此文件;
(2) 如果想保留这个最大文件, 则只能扩大硬盘空间了.
---------------------
作者:mry6
来源:CSDN
原文:https://blog.csdn.net/muriyue6/article/details/84783107
版权声明:本文为博主原创文章,转载请附上博文链接!
相关文章
- Access denied; you need (at least one of) the SUPER privilege(s) for this operatio
- rm: cannot remove `file': Operation not permitted解决方法 chattr命令详解
- easywechat报错:Failed to cache access token
- chrome模拟微信浏览器的user agent
- jQuery打印插件jqprint
- 实现页面图片的延时异步加载
- 微信小程序登录流程
- mysql General error: 1267 Illegal mix of collations错误
- 基于general_log的mysql日志追踪
- linux nvm 安装及使用
- linux下编译安装php7.1.8
- MySQL中的事务
- Mysql Explain 命令详解
- Git使用指南For Windows
- Redis的介绍、安装、启用、连接
- 微信小程序连接蓝牙打印机实现流程及注意事项
- git 设置拉取和提交的账号密码并自动保存
- 基于Thinkphp权限管理的实现
- Linux ftp安装及添加管理ftp账号
- 通过软连接修改Linux命令行的php版本