Linux出现cannot create temp file for here-document: No space left on device的问题解决

Posted Lazy’s Operation Notes

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux出现cannot create temp file for here-document: No space left on device的问题解决相关的知识,希望对你有一定的参考价值。

在终端输入:cd /ho 按tab键时,显示错误:

bash: cannot create temp file for here-document: No space left on device

这是由于该磁盘的空间已经满了,这时候可以进行扩容,或者将该磁盘的部分目录迁移到别的磁盘。

以下为解决思路,查找最大的文件,然后将其干掉:

1、使用命令df -h 查看硬盘空间 

2、命令top查看cpu及内存

3、使用命令du -h –max-depth=1 /var/log/* 查看/var/log路径下文件的大小

4、du -sh /* 查看哪个目录最大,一步一步的查找大文件

5、使用du -h --max-depth=1查找最大的文件,参考:http://www.cnblogs.com/kerrycode/p/4391859.html

 

转自:http://www.cnblogs.com/EasonJim/p/6833354.html

以上是关于Linux出现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

Linux使用命令CD时候使用tab报-bash: cannot create temp file for here-document: No space left on

bash: cannot create temp file for here-document: Read-only file system

cannot create temp file for here-document: No space left on device

cannot create directory linux 中mkdir时候出现的问题解决

cannot create directory linux 中mkdir时候出现的问题解决