You can use the du command to print the breakdown of disk usage by directory. The du command can recursively calculate the size of directories and their contents, and the sort command can be used to sort the results by size.
Here's an example command that will print the breakdown of disk usage by directory, sorted by size:
du -h / | sort -h
This command will calculate the disk usage of the root directory (/) and all its subdirectories, and display the sizes in a human-readable format (-h). The sort -h command will sort the output by size, with the smallest directories first and the largest directories last.
You can modify the command to start from a different directory if you suspect that the storage leak is coming from a specific directory. For example, if you suspect that the leak is coming from the /var directory, you can use the following command:
du -h /var | sort -h
This will calculate the disk usage of the /var directory and its subdirectories, and display the sizes sorted by size.
Once you have identified the directories that are taking up a lot of storage, you can investigate further to determine the cause of the storage leak.