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
5 weeks 18 hours ago
5 weeks 2 days ago
7 weeks 1 day ago
8 weeks 7 hours ago
8 weeks 1 day ago
17 weeks 23 hours ago
17 weeks 23 hours ago
17 weeks 3 days ago
17 weeks 4 days ago
18 weeks 2 days ago