|
Home > Archive > Unix questions > August 2006 > "du -ks" but only for a user
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
"du -ks" but only for a user
|
|
| michel 2006-08-16, 7:30 am |
| Hello,
I have a simple question:
Into a folder can save data a couple of users. To control the amount of
data which each user has created I want to use "du -ks" but only for a
user.
Could somebody give me an idea how can I realize this ?
Many thanks.
Michel g.
| |
| Bill Marcum 2006-08-16, 1:25 pm |
| On 16 Aug 2006 02:08:35 -0700, michel
<michelgaugain@yahoo.de> wrote:
> Hello,
>
> I have a simple question:
> Into a folder can save data a couple of users. To control the amount of
>
> data which each user has created I want to use "du -ks" but only for a
> user.
> Could somebody give me an idea how can I realize this ?
>
quota?
--
Slous' Contention:
If you do a job too well, you'll get stuck with it.
| |
| dfeustel@mindspring.com 2006-08-16, 1:25 pm |
| michel <michelgaugain@yahoo.de> wrote:
> Hello,
>
> I have a simple question:
> Into a folder can save data a couple of users. To control the amount of
>
> data which each user has created I want to use "du -ks" but only for a
> user.
> Could somebody give me an idea how can I realize this ?
Do a directory listing of the files in that directory using ls -l.
Pipe that listing through an awk program that has a accumulators for each
user and add each file size from the ls command to the accumulator for
the user who owns the file. When the awk program has processed all of
the output of the ls command, print out the accumulators.
--
Using OpenBSD with or without X & KDE?
http://dfeustel.home.mindspring.com
| |
| michel 2006-08-17, 7:35 am |
| OK, I have it.
Thank you very much for the help !
Grateful,
Michel Gaugain
|
|
|
|
|