Skip to content

Instantly share code, notes, and snippets.

  • Save nguaman/97a9716a159d39bfa8c038615978c086 to your computer and use it in GitHub Desktop.
Save nguaman/97a9716a159d39bfa8c038615978c086 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment