参考 很奇怪的事情
cd /m
之后打了一个tab给我提示:
bash: cannot create temp file for here-document: No space left on device
查了一圈之后找到答案:(具体原因不明,需要以后查看) Solution:
# do this part one time only
mkdir /path/to/mytmp
chmod 1777 /path/to/mytmp
# put this in .bashrc or your login .profile file
# it has to execute BEFORE you want TMPDIR to work
export TMPDIR=/path/to/mytmp
原因是磁盘满了 Ubuntu 挂载新硬盘并把home目录迁移到新硬盘