Linux

Recursive directory summary view command

Quote:

I need a command to view the disk space taken up by directory-level, similar to df, but with 1-2 levels deeper, so I can see the disk usage by user's sub dir in the /home directory for example – similar to that user's cpanel disk space tool

I havent found an appropriate ls switch ..

What you are looking for is the "du" command. An example of the "du" command listing the directories in the current directory and their space usage is:

du -h —max-depth=1 /home

This will list all directories in /home with how much space is used by them.

...finally :-)

Average rating
(0 votes)

Similar entries