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 :-)
Recent comments
19 weeks 2 days ago
19 weeks 3 days ago
21 weeks 2 days ago
22 weeks 1 day ago
22 weeks 3 days ago
31 weeks 2 days ago
31 weeks 2 days ago
31 weeks 4 days ago
31 weeks 5 days ago
32 weeks 4 days ago