To find out the size of an email account or mailbox on a Linux or Unix-like system, you can use the du
command to display the size of the mailbox file or directory.
For example, if your email account uses the Maildir format, you can use the du
command to display the size of the Maildir
directory for your email account. For example:
du -sh /path/to/MaildirSource:www.lautturi.com
Replace /path/to/Maildir
with the path to your Maildir
directory. This will display the size of the Maildir
directory in human-readable format (e.g., "10M" for 10 megabytes).
If your email account uses the mbox format, you can use the du
command to display the size of the mailbox file for your email account. For example:
du -sh /path/to/mailbox.mbox
Replace /path/to/mailbox.mbox
with the path to your mailbox file. This will display the size of the mailbox file in human-readable format (e.g., "10M" for 10 megabytes).
You can also use the mailq
command to display the size of the queue of outgoing mail for your system. For example:
mailq | grep total
This will display the total size of the outgoing mail queue.
You can find more information about the du
and mailq
commands and their options in the du
and mailq
documentation or by running the du --help
and mailq --help
commands.