I have AWS linux instance, Currently there are many folders in the instance.
I would like to map all the folders and their size, so i could come back in 1 month and check which folder occupy high amount of storage (maybe the logging folder).
What is the best way to achieve this ?
so i could compare the size of this month and next month more easily.
Thanks.
Answer
Use the ncdu utility. Record the values. Come back and check again in a month :)
ncdu 1.7 ~ Use the arrow keys to navigate, press ? for help
--- /ppro ----------------------------------------------------------------------------------------------------------
170.0GiB [##########] /data
104.6GiB [###### ] /sldata
54.4GiB [### ] /isam
48.8GiB [## ] /slisam
27.8GiB [# ] /hist
15.4GiB [ ] /prt
12.1GiB [ ] /jmail
10.1GiB [ ] /zephyr2
9.7GiB [ ] /edi
7.9GiB [ ] /savdata2
6.2GiB [ ] /io
No comments:
Post a Comment