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…

How To Open WPRESS Files Quick And Easily

Wpress-Extractor Windows/Mac Download link Windows – Download now Mac – Download now *IMPORTANT FOR MAC: Don’t forget to make the binary executable by running a chmod +x wpress_extractor on the downloaded file via the Terminal. Download the extractor Create a directory where you wish your files to be extracted to Copy the downloaded extractor to…