Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 716 Bytes

LINUX_no_space_left_on_device_error.md

File metadata and controls

30 lines (23 loc) · 716 Bytes

Fix /$ cd ho-bash: cannot create temp file for here-document: No space left on device

First Check all partition:

$ df -h

The fastest way to locate your folders that are too full is by narrowing down the folder file size in levels from the root folder. You start with the root folder by:

sudo du -h --max-depth=1 /

Then - EITHER you increase the depth, i.e. the levels below:

sudo du -h --max-depth=2 /

OR - quicker - you you look which folder has eaten up the most disk space, and do the same on this folder:

sudo du -h --max-depth=1 /home/<user>/<overfull-folder>

Once you found it, just remove that one:

rm -rf <path to overfull-folder>