Three Commands to Diagnose and Free Up Disk Space on Linux
A full disk is one of the most common causes of unexpected service failures on Linux systems. Administrators can identify which partition is full using the 'df -PhT' command, which provides a clear overview of disk usage across all partitions. The largest space-consuming directories can then be pinpointed by running a 'du' command that lists the top 10 folders by size. Quick cleanup options include truncating large log files, clearing the package cache with 'apt clean', and checking for deleted files still held open by processes using 'lsof'. These three steps form a practical checklist for resolving low-disk-space issues without advanced tools.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in