Email Accounts Showing Incorrect Disk Usage After Deleting Emails

Symptoms After removing emails from the email accounts, the disk usage for the email accounts in the “Email Accounts” section is not updated or accurate. Description The Email address shows incorrect disk space usage due to the maildirsize file for the email accounts not being updated. Workaround Please note that “CPUSER” in the following examples…

8 WP-CLI Commands to Clean Up and Optimize your Site – WordPress Imp CLI

DELETE  FROM wp_posts WHERE post_status = ‘trash’; # delete all posts in trash, draft posts and post revisions wp post delete $(wp post list –post_status=trash –format=ids) wp post delete $(wp post list –post_status=draft –format=ids) wp post delete $(wp post list –post_type=’revision’ –format=ids) wp post delete $(wp post list –post_type=post –cat=8 –format=ids –year=2016) Purging Cache In…

How to Install and Configure CSF on AlmaLinux 9
|

How to Install and Configure CSF on AlmaLinux 9

ConfigServer Security & Firewall (CSF) is an iptables-based firewall that provides high-level security to the Linux system. CSF includes a wide range of features, such as IP blocking, port blocking, and DoS protection. It also supports advanced security measures, such as rate limiting, connection tracking, and SSH login detection. In addition to its firewall features,…

How to use sed to find and replace text in files in Linux / Unix shell

Find and replace text within a file using sed command The procedure to change the text in files under Linux/Unix using sed: Use Stream EDitor (sed) as follows: sed -i ‘s/old-text/new-text/g’ input.txt It tells sed to find all occurrences of ‘old-text‘ and replace with ‘new-text‘ in a file named input.txt The s is the substitute…