Linux使用tab补全时提示 bash: cannot create temp file for here-document: No space left on device

(1)Linux使用tab补全时提示 bash: cannot create temp file for here-document: No space left on device
(2)编辑定时任务 设置crontab -e时候,也报错No space left on device

主要是因为我之前把定时任务程序扔后台运行,发现会产生很多日志数据,就要删掉用用程序文件,其实因为此应用程序正在后台运行,所以并没有真正的删掉
此时输入:lsof / |grep deleted
来显示没有删掉的应用程序线程,他们的后面都带有【deleted】
然后:kill -9 线程PID
来杀死这些占用空间的线程,然后试一试
df -h
crontab -e
看看是不是好了,反正我的是好了啦~

你可能感兴趣的:(linux)