Disk usage per user in Linux / Unix

Here is a simple and quick solution that I believe meets your requirement.

I assume that all your users have accounts in the /home directory. All you need to do is to change directory to the /home directory, and then do a du at a depth of 1.

cd /home
sudo du -d 1 -h

Your output will look something like this:

root@sisrv:/home# sudo du -d 1 -h
395M    ./Backups
2.1G    ./john
168K    ./debian
1.1G    ./sam

Or for finding the problem users (directories too),

du -xk | sort -n | tail -25
  • disk usage per user, user disk space, disk usage
  • 18 Users Found This Useful
Was this answer helpful?

Related Articles

SSH login without password

You want to use Linux and OpenSSH to automate your tasks. Therefore you need an automatic login...

How to remove a Linux user

How do I drop or remove old users account from my Linux server? I can login using the user’s SSH...

How to restrict and except SSH access to specific IPs

Once your IP is public it gets attention from so many bots in the internet that do brute force...

How to lock and unlock user account in linux

With the help of two commands you can lock and unlock the user account in Linux. To Lock the...

Adding a user to a group

Synopsis This article describes how to add a Linux user (account) to a group. Environment...

Powered by WHMCompleteSolution