How to find biggest mailboxes in Linux

Applicable to Ubuntu and post-CentOS operating systems, this method displays all Maildir directories in all /home/ directories together with their size: find /home/ -name Maildir -type d -exec du -hs –summarize –block-size=1M {} \; | awk ‘{if ($1 > 2000) … Read More

How to end all Dovecot processes on Cent OS 7

Trying to restart Dovecot and getting “Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login”? Then open a console and end (kill) all processes by running this: for i in `ps aux | grep dovecot | awk ‘{print $2}’` ; … Read More

0
How to exclude categories from Category widget in functions.php

Add the following function in functions.php of your active (child?) theme and adjust the category ID numbers: // Hide categories from WordPress category widget function mo_exclude_widget_categories($args){ $exclude = “1,3,4”; // add category IDs here $args[“exclude”] = $exclude; return $args; } … Read More

0