Command Line Tools

A command-line interface or command language interpreter (CLI), also known as a terminal, is a means of interacting with a computer program where the user issues commands to the program in the form of successive lines of text (command lines).

Throughout the course we will emphasize use of the terminal and executing commands within it as our modus operandi.

Windows Users

So that we can work as closely as possible to the Mac and Linux users we will install Cygwin.

  • Download Cygwin here and use the graphical installer. Accept all the default options.

  • Verify your installation by opening Cygwin. When it opens you should see a black box with some text that looks like:

userName@computerName: ~$

i.e. for Lachlan he sees:

lachlan@lachlan-ThinkPad-T460s: ~$

We will explain what all this means in the first day or so of the course.

Why Cygwin

  • We will uses Cygwin as our command line tool, and unlike other Windows shells such as PowerShell it uses Unix syntax.

  • Anywhere throughout the remainder of the installation guide where we suggest you to enter a command into a terminal, enter the text-based command into your Cygwin terminal followed by pressing Return, for example:

    userName@computerName: ~$ whoami
    

Should return your username.

Do Not Delete the Install File

  • Do not delete the setup-x86_64.exe file. It needs to be kept so that we can add on some additional packages to use in the course.

Mac Users

A command line interface comes already installed with OSX.

You will need to install some other software from the terminal thoughout the course, so it will be useful to install some additional "command line tools" now:

  • First we want to install X-code command line tools. Open a terminal by searching for it with spotlight, cmd + spacebar then type terminal and press Return when it appears. Then, copy and paste the following
xcode-select --install
  • Second, install Homebrew by opening a terminal and pasting the following command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • To verify that Homebrew installed correctly, enter the following into your terminal
brew doctor

And you should see the following output

Your system is ready to brew

Linux Users

Nothing needs to be done. You can open a terminal session with Crtl + Alt + T.