I need to help a specific user, say alice, free up some disk space; but not all the user's files are in his home directory; many are in directories shared with other users. I'd like to have something like the output of
du -sh *
but limited to the files that belong to that user only. I.e., something like,
du -sh --ignore-all-users-except=alice *
So, for example, if in the current directory there are three directories, a
, b
and c
, I'd like to see output such as the following:
1.3G a
416K b
80K c
meaning that alice is using 1.3G inside a
, 416K inside b
, and so on.
Is there any utility that can give me such information, or do I need a script?