106 words
1 minutes
Linux, no space left on device

Linux, no space left on device#

The “no space left on device” error in Linux indicates that the disk is full. This guide provides steps to troubleshoot and resolve this issue.

Checking Disk Usage#

To check disk usage, use the following command:

df -h

Finding Large Files#

To find large files, use the following command:

du -ah / | sort -rh | head -n 10

Removing Unnecessary Files#

Identify and remove unnecessary files to free up space. For example, to remove a large log file:

rm /path/to/large/log/file

Conclusion#

By checking disk usage, finding large files, and removing unnecessary files, you can resolve the “no space left on device” error in Linux. These steps help maintain a healthy filesystem.


Linux, no space left on device
https://zxce3.net/posts/cli/linux-no-space-left-on-device/
Author
Memet Zx
Published at
2022-11-05