Thursday, 29 August 2019

How to find the list of all the large files in the system [/dev/xvda1/ is 100% full error]

Hi All,

You might have seen this error xvda1 is 100% full and might have felt the need to check what are the files that are occupying so much space.

You can get this information and write to an output file via below command:

sudo find / -type f -size +500M -exec ls -lh {} \; > largeFiles.txt

You can then remove the unwanted files using the rm command.

Enjoy!

No comments:

Post a Comment