alternative_folder_size_command
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| alternative_folder_size_command [2025/09/10 12:12] – created walkeradmin | alternative_folder_size_command [2025/09/23 13:31] (current) – [Introduction] walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | <color #db5f0b>Nov 2023</ | + | <color #db5f0b>Sep 2025</ |
| \\ | \\ | ||
| \\ | \\ | ||
| ---- | ---- | ||
| - | Stat Mux | + | ==== Introduction ==== |
| + | |||
| + | There are many ways to work out the size of folders, but this one that I learnt today seems to be perfect for my needs. | ||
| + | \\ | ||
| + | \\ | ||
| + | It is using the <color # | ||
| + | \\ | ||
| + | \\ | ||
| + | You need to login as <color # | ||
| + | \\ | ||
| + | \\ | ||
| + | ---- | ||
| + | |||
| + | Remember, this command works from the folder you are in, so if you want to look at all folders, you need to be at the root folder (cd /). | ||
| + | \\ | ||
| + | \\ | ||
| + | We are going to use the command <color # | ||
| + | \\ | ||
| + | \\ | ||
| + | <color # | ||
| + | \\ | ||
| + | < | ||
| + | du -h --max-depth=1 | ||
| + | |||
| + | 2.2G ./usr | ||
| + | 28M | ||
| + | 4.0K ./mnt | ||
| + | 4.0K ./dev | ||
| + | 440K ./.kube | ||
| + | 4.0K ./media | ||
| + | 0 | ||
| + | 16K | ||
| + | 14G | ||
| + | 536K ./tmp | ||
| + | 12G | ||
| + | 70M | ||
| + | 18M | ||
| + | 0 | ||
| + | 4.0K ./srv | ||
| + | 788K ./home | ||
| + | 26G | ||
| + | |||
| + | 52G . | ||
| + | </ | ||
| + | |||
| + | Above we can see the size of each folder, and at the bottom the total size of all folders. | ||
| + | \\ | ||
| + | \\ | ||
alternative_folder_size_command.1757506326.txt.gz · Last modified: by walkeradmin
