Documentation
Using the command line

Draft, 06 May 2016
This page should be in a useful state, but still needs work before it's finished.


Opening a terminal

On MacOSX click on the magnifying glass at the top of the screen and search for ‘Terminal’. Hit enter to open a terminal window.

On Windows, search for either ‘Command prompt’ or ‘Powershell’ and click on the top result.

Learning to love the command line

There are some excellent tutorials around to ease you into the world of the command line. Start with these ones, especially designed for humanities types:

Powershell permissions

If you’re going to use Powershell to do useful things like running Python scripts you’ll probably need to change the default permissions.

Search for ‘Powershell’ as you normally would, but this time right click on the top result. From the menu choose ‘Run as administrator’. A new Powershell window will open.

At the Powershell prompt type:

> Set-ExecutionPolicy RemoteSigned

It’ll ask for confirmation. Just hit enter.

Pasting into a Windows terminal

When you’re learning (and when you’re not!) you often want to paste commands into the terminal that you’ve copied from elsewhere. Unfortunately the usual ‘Ctrl-v’ key combination doesn’t work inside Windows terminals.

To paste into the command prompt, click on the command prompt icon at the top left of the window, Choose ‘Edit > Paste’.

To paste into Powershell, just right click somewhere inside the window.