Using grep to removing comments, newlines/whitespace from config files

As configuration files are often full with comments and blank lines reading them inside shell become tedious! Sometimes you just want to quickly recap active configuration option only. Mostly, comments starts with “#”(hash) or “;” (semicolon). Below is a command I often use while debugging various configuration files. For files having comment starting with “;” e.g. php.ini […]

Remove “eval(base64_decode” using linux commands from all php files across multiple WordPress

Linux command to fix “eval(base64_decode” code-injection on multiple WordPress installations and remove vulnerable plugins like WP-PhpMyAdmin