Removing entire directory using SSH

This is how to recursively delete a specified directory, including all files and all sub directories.

rm -rf DirectoryToDelete

rm : remove
-rf : recursively delete a specified directory, including all files and all sub directories. (note the f makes it delete without asking confirmation)

Installing wordpress plugins using SSH

This is a short tutorial about using SSH to install a wordpress plugin.

For this example I’m going to show you how I installed

  1. change directories to where your wp-content/plugins folder is located.
  2. use the wget command to download the zip folder.
  3. unzip your newly downloaded plugin
  4. remove that zip folder from your wp-content/plugins folder.

Code:

cd /wp-content/plugins
wget http://downloads.wordpress.org/plugin/syntaxhighlighter.zip
unzip syntaxhighlighter.zip
rm syntaxhighlighter.zip

So you can use this method to securely manage your wordpress plugins.