RCS Workshop 1: The Unix Shell: Setup

You need to download some files to follow this lesson:

  1. Download data-shell.zip and move the file to your Desktop.
  2. Unzip/extract the file (ask your instructor if you need help with this step). You should end up with a new folder called data-shell on your Desktop.
  3. Open a terminal and type cd, then press the Enter key. That last step will make sure you start with your home folder as your working directory.

In the lesson, you will find out how to access the data in this folder.

Where to type commands: How to open a new shell

The shell is a program that enables us to send commands to the computer and receive output. It is also referred to as the terminal or command line.

Some computers include a default Unix Shell program. The steps below describe some methods for identifying and opening a Unix Shell program if you already have one installed. There are also options for identifying and downloading a Unix Shell program, a Linux/UNIX emulator, or a program to access a Unix Shell on a server.

If none of the options below address your circumstances, try an online search for: Unix shell [your computer model] [your operating system].

Linux

The default Unix Shell for Linux operating systems is usually Bash. On most versions of Linux, it is accessible by running the (Gnome) Terminal or (KDE) Konsole or xterm, which can be found via the applications menu or the search bar. If your machine is set up to use something other than Bash, you can run it by opening a terminal and typing bash.

macOS

For a Mac computer running macOS Mojave or earlier releases, the default Unix Shell is Bash. For a Mac computer running macOS Catalina or later releases, the default Unix Shell is Zsh. Your default shell is available via the Terminal program within your Utilities folder.

To open Terminal, try one or both of the following:

  • In Finder, select the Go menu, then select Utilities. Locate Terminal in the Utilities folder and open it.
  • Use the Mac ‘Spotlight’ computer search function. Search for: Terminal and press Return.

To check if your machine is set up to use something other than Bash, type echo $SHELL in your terminal window.

If your machine is set up to use something other than Bash, you can run it by opening a terminal and typing bash.

Reference

How to Use Terminal on a Mac

Windows

Computers with Windows operating systems do not automatically have a Unix Shell program installed. There are different options to install a Unix Shell emulator. We suggest using MobaXterm for this workshops.

To use MobaXterm Home Edition:

  1. Install MobaXterm Home Edition
    • We recommend the “Installer edition” (green button)
    • Unzip the MobaXterm Installer ZIP before running the MSI installer file
  2. In MobaXterm: Click Start Local terminal button in the centre of the MobaXterm window
  3. In the MobaXterm window, type mobapt install nano followed by the Enter key.