In Linux, I have the following folder structure, I want to get the size of the folder and its subfolders to a certain depth.
I have this structure:
/AAAA/BBBB/1111
/AAAA/BBBB/2222
/AAAA/BBBB
/AAAA/CCCC
/AAAA/DDDD/3333
/AAAA/DDDD
/AAAA
du -m
, shows me the entire tree, not just 2 levels as I need. What is the proper command?
You want the -d
or --max-depth
option.
du -d 2