I want to estimate the amount of disk space used by a user via Apple Remote Desktop Unix command.
I've been trying the following command, running as root
sudo du -sh /users/
but I'd like to add the exclusion to ignore the size of the /users/admin
directory.
The du
manual shows -I[mask]
as the way to do this, but I can't get it to work. Any help please?