Quote:
Originally Posted by Carlwill
Are you saying I should run the command:
Code:
du -sh /home/$USER/Maildir
or was that a suggested shell script?
|
You have to run the whole script, not just the du command portion of it.
Basically let's break it down:
Code:
for USER in `ls /home`
This assigns the variable to each user from the ls command to get the list of everyone's home directory that might have a Maildir within it.
This simply tells us what were going to do with the variables, basically the next step.
Code:
du -sh /home/$USER/Maildir
The command were running against each variable assigned from the list of users in the /home directory.
We're telling the script we're all done now.
Make sense?