You can analyze disk space using:
Byconnecting to hosting via SSH, you can conduct a detailed analysis disk space using the commands below.
In commands:
~
.5
you can specify the number of files / directories to be shown in the results.To see the five largest catalogs, run the command:
du -smh ~/* | sort -rh | head -n 5
To see the five largest directories, including subdirectories, run the command:
du -Sh ~ | sort -rh | head -n 5
To see the five largest files and largest subdirectories in a given directory, run the command:
du -sh ~/way/to/catalog/* | sort -rh | head -n 5
To see five largest files, run the command:
find ~ -type f -exec du -Sh {} + | sort -rh | head -n 5
To see the five subdirectories of the current directory that take up the most inodes, run the command:
find . -xdev | cut -d "/" -f 2 | sort | uniq -c | sort -nr | head -n 5
To see five directories occupying the most inodes, including subdirectories, run the command:
find . -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -nr | head -n 5
To see number of inodes occupied by the contents of the current directory (including subdirectories), run the command:
find . | wc -l