SSH Cheat Sheet

By Joe Gardiner Thursday, 3rd March 2011

This is guide is set out to provide SSH beginners with the most commonly used commands to get them started. Of course if you’re an old hand at SSH but have a bad memory then this may be the place for you too!


Simple navigation commands

Command Result
pwd Displays the full directory path of the current directory
ls Displays all the files in the current directory that are not hidden
ls -al Displays all the files in the current directory and file information
ls *.txt Displays all files in the current directory ending with .txt
cd Directory Name Change to a different directory
cd .. Moves up one directory
clear Clears all the content on the terminal screen
exit Logs off your shell and clears the terminal

File Management

Command Result
mv [Old filename] [New Filename] Use to move or rename a file
cp [Filename] [New Filename] Makes a copy of the file with a new filename
rm Deletes a file
rm -f Deletes a file without a confirmation prompt

Directory Management

Command Result
mkdir [Directory name] Creates a directory with the chosen name
ls -d * / Displays all the directories that exist inside your current directory
cp -r [Current directory] [New directory] Copies a directory and all of its contents to a new directory with the chosen name
rm -r -f [Directory] Deletes a directory and all of its contents without asking for confirmation

Posted in Guides, SSH | 1 Comment »

Getting to Grips With SSH – Part 6

By Ollie Armstrong Friday, 3rd December 2010

SSH-guides

Welcome to the sixth part in the series. The series that is the easiest way to get started with SSH.

In the last part, we got to know a powerful terminal text editor, so you will probably have a few more files on your server that you want to move around. So in this part we will be going over the final few commands that can be used to manipulate files. This includes the likes of copying, moving and renaming. After you know these you should be the master of file navigation and manipulation. If you haven’t yet read the previous part, you can find that here: Getting to Grips with SSH Part 5.

read more…


Posted in Guides, SSH | No Comments »

Getting to Grips With SSH – Part 5: Vim

By Ollie Armstrong Tuesday, 23rd November 2010

SSH-guides

Welcome to the fifth part of this series of blog posts to introduce you to the wonderful world of SSH.

In this post we are going to be learning about a terminal text editor. I hear you ask “Well, what’s a terminal text editor?”, let’s start with that.

The window you are using to SSH to your vCluster (whether it be PuTTY for Windows, or Terminal.app for Mac) is known as a Terminal. This terminal can run a command to make it behave like a text editor, much like Notepad or TextEdit would be used.

read more…


Posted in Guides, SSH | 1 Comment »

Getting to Grips With SSH – Part 4

By Ollie Armstrong Thursday, 1st July 2010

SSH-guides

Welcome to the fourth blog in the series of posts teaching you basic SSH commands.

In this part, we will be building on what you learnt last time to improve your directory navigating, and also going over some more advanced switches.

Once again you will need to connect to your vCluster, and once again I will refer you to the tutorial on connecting to your vCluster. If you haven’t read the third part yet, then you can find it in Getting to grips with SSH part 3.
read more…


Posted in Guides, SSH | No Comments »

Getting to Grips With SSH – Part 3

By Ollie Armstrong Thursday, 24th June 2010

SSH-guides

Welcome to the third guide in the series of blog posts helping you to understand basic SSH commands to aid your development.

In the previous part, you learned how to connect to your vCluster using SSH. This is a good starting point, but not very useful on its own. In this part we will be learning how to navigate your vCluster using SSH commands. It’s pretty easy though!

read more…


Posted in Guides, SSH | No Comments »

« Older Entries