show_directories_with_sizes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| show_directories_with_sizes [2025/02/28 15:59] – walkeradmin | show_directories_with_sizes [2025/02/28 16:05] (current) – [LIst Directories with Size] walkeradmin | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ---- | ---- | ||
| + | ===== Introduction ===== | ||
| + | When we list directories, | ||
| + | \\ | ||
| + | \\ | ||
| + | ---- | ||
| + | ==== LIst Directories with Size ==== | ||
| + | This is very simple to do, just use the following command: | ||
| + | \\ | ||
| + | du -sh * | ||
| - | + | If you are in the root, you will see all the top level folders and subfolders, or you can run this from a specific folder and just see the subfolders there. | |
| - | + | \\ | |
| - | + | < | |
| - | du -sh * | + | 0 bin |
| + | 225M boot | ||
| + | 0 dev | ||
| + | 27M etc | ||
| + | 72K | ||
| + | 0 lib | ||
| + | 0 | ||
| + | 16K | ||
| + | 4.0K media | ||
| + | 4.0K mnt | ||
| + | 4.0G opt | ||
| + | 0 | ||
| + | 5.5M root | ||
| + | 13G run | ||
| + | 0 | ||
| + | 4.0K srv | ||
| + | 0 sys | ||
| + | 28K tmp | ||
| + | 2.1G usr | ||
| + | 32G var | ||
| + | </ | ||
| + | In the above example, we can see a listing of folders from the root, along with their folder sizes. | ||
| + | \\ | ||
| + | \\ | ||
| + | ---- | ||
show_directories_with_sizes.1740758378.txt.gz · Last modified: by walkeradmin
