Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kymtwyf/24c83992ad75129a71d0 to your computer and use it in GitHub Desktop.
Save kymtwyf/24c83992ad75129a71d0 to your computer and use it in GitHub Desktop.
bash: cannot create temp file for here-document: No space left on device

参考 很奇怪的事情

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
@wenweih
Copy link

wenweih commented Oct 12, 2016

@Stephan14
Copy link

还有可能是inode被打满了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment