Here are the steps to deactivate a single WordPress plugin using SSH in Linux on an AWS Lightsail instance. This can be used in other platforms as well.
Log in to your AWS Lightsail instance using SSH.
Navigate to the WordPress installation directory. This can be found in the ‘htdocs’ directory if you installed WordPress using the default settings. Use the following command to navigate to the directory:
3. Once you are in the WordPress installation directory, navigate to the wp-content directory:
4. Navigate to the plugins directory:
5. Find the directory of the plugin you want to deactivate. You can list all the plugins using the ls command. For example, if you want to deactivate the hellodolly plugin, use the following command:
mv hellodolly hellodolly.disabled