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

时间: 2024-10-21 16:50:13

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

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

今天登陆系统在cd 到某个目录使用tab键的时候报错了 linux很友好的提示了:不能创建临时文件文档:设备上没有剩余空间(告诉我们磁盘满了) du -sh /* 查看哪个目录最大,一步一步的查找大文件 我这里是跑了好多个tomcat实例,所以没做日志的处理,所以导致磁盘占满 写一个定时删除前7天的日志删除脚本就行了

Error writing file '/tmp/MLLGyECY' (Errcode: 28 - No space left on device)

mysql 的一个从库报错: Could not execute Write_rows event on table xxx.xxxx_tmp_tj; Error writing file '/tmp/MLLGyECY' (Errcode: 28 - No space left on device), Error_code: 3; Error writing file 'mysql-bin' (errno: 28 - No space left on device), Error_code: 1

MySQL [Warning] Can’t create test file xxx lower-test(转)

add by zhj:修改的数据库的datadir,然后数据库就无法启动了,错误如下 2014-12-11 16:22:57 26309 [Warning] Can't create test file /data/mysql/server2.lower-test 2014-12-11 16:22:57 26309 [Warning] Can't create test file /data/mysql/server2.lower-test 2014-12-11 16:22:57 26309 [

SP2-0110: Cannot create save file "afiedt.buf"

sp2-0110:无法创建保存文件"afiedt.buf" 出处:此问题是由于使用 define _editor=vim 时,用ed更改时报错 问题原因:Cannot create save file "afiedt.buf" 因为在执行 edit的时候 "afiedt.buf" 文件默认保存在你键入sqlplus命令时所在目录中 比如:你在 / 目录下进入sqlplus, 当你用edit时,"afiedt.buf"文件就会保

170318 11:44:26 [ERROR] Can't start server: can't create PID file: No space left on device

数据库挂了.打开远程,进了系统,service mysqld stop 失败.service mysqld start等了好大一会,提示Timeout error occurred trying to start MySQL Daemon 出现Can't start server: can't create PID file: No space left on device这个错误. 提示磁盘空间不足 后用df -h 命令查看 竟然发现磁盘容量全部用完了,于是要查看是谁占用了用命令:find /

Linux System Programming note 8 ——File and Directory Management

1. The Stat Family #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> int stat(const char *path, struct stat *buf); int fstat(int fd, struct stat *buf); int lstat(const char *path, struct stat *buf); struct stat{ dev_t st_d

How to create .gitignore file in Windows Explorer

How to create .gitignore file I need to add some rules to my .gitignore file, however, I can't find it in my project folder. Isn't it created automatically by Xcode? If not, what command allows me to create one? echo 'xxx' > .gitignore To get around

异常/usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h&#39;

出现下列异常: /usr/bin/install -c -m 644 jconfig.h /usr/local/jpeg6/include/jconfig.h /usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h': No such file or directory make: *** [install-headers] Error 1 原来要创建对应的目录,命令如下: mkdir -p

Create a file which date is several days ago

Create a file "1 week ago" ============================ #[email protected]:/root/study# date +%Y%m%d20140718[email protected]:/root/study# touch -d "1 week ago" file2[email protected]:/root/study# touch -d "10 day ago" file1[