Tuesday, July 1, 2008

Linux / UNIX find out size of email account or mailbox

Linux / UNIX find out size of email account or mailbox

Use awk command to print user mailbox size along with username

Finally sort command will sort mailbox size.

Type the command:
$ ls -lL /var/mail | awk '{print $5, $9}' | sort -rn
OR
$ ls -lL /var/mail | awk '{print $5, $9}' | head -10

==========================================================
cd /var/spool/mail;ll -lh | grep 15M

No comments: