I'm running a Linux instance on EC2 (I have MongoDB and node.js installed) and I'm getting this error:
Cannot write: No space left on device
I think I've tracked it down to this file, here is the df output
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda1 1032088 1032088 0 100% /
The problem is, I don't know what this file is and I also don't know if this file is even the problem.
So my question is: How do I fix the "No space left on device" error?
sudo du -x -h / | sort -h | tail -40(from this answer). – mkobit Jun 21 '16 at 14:09sort: write failed: /tmp/sortGmL8oF: No space left on device– dOM Dec 03 '18 at 09:28/tmp. Or, if you must, narrow it down step by step with commands likedu -xhs /*. – David Schwartz Dec 03 '18 at 09:45du -x -h / | sort -h | tail -40 | sort -h -rcan be used to sort in descending order when using human-readable output. – Vigs May 11 '19 at 17:53