网站首页技术博客
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 安装及使用
- localhost主机名导致微信公众号请求url超时
- yum安装软件时出现No package *** available的问题
- 【原创】Mysql的主从配置,实现读写分离
- 让你的Linux服务器更安全的四个方法
- ThinkPHP分页类修改
- PHP windows下 nts 与 ts 区别
- mysql in 查询的效率如何
- PHP多进程引发的msyql连接数问题
- supervisor unix:///tmp/supervisor.sock no such file
- 【MySQL系列文章】3、哈希索引