Ensure you have a working shell
“The shell” is what we call 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. There are many different programs that can operate as a shell. We will use the bash shell (though if you are using a Mac, you may use a shell called zsh).
The instructions below should get you a working shell running on your own laptop or desktop computer.
Windows users
Computers running the Microsoft Windows operating systems do not automatically have a Unix Shell program installed. They have Powershell and the DOS shell instead.
However, since the release of Windows 10, Microsoft has provided the Windows Subsystem for Linux, abbreviated WSL, that allows a complete virtual Linux system hosted on your Windows desktop or laptop. You can actually install multiple Linux distributions at the same time, but I recommend sticking to the default (Ubuntu). To install WSL and the default Ubuntu distribution, take the following steps:
- find the PowerShell application and open it in Administrator mode (right click on the application icon to run in Administrator mode)
- From the PowerShell command line, type
wsl --install. Wait for the command to finish, then typewsl -l -vto see what Linux distributions have been installed. The default at time of writing is Ubuntu 22.04 under WSL 2.- From the start menu, type “Linux”, or “Ubuntu”, and you should have a Linux distribution available to run. The first time you launch it might be a bit slow.
Additional references are below.
Reference
Mac OS X users
For Mac computer users, the default Unix Shell is either
bashorzshand it is available via the Terminal Utilities program within your Applications folder.To open Terminal, try one or both of the following:
- Go to your Applications. Within Applications, open the Utilities folder. Locate Terminal in the Utilities folder and open it.
- Use the Mac ‘Spotlight’ computer search function. Search for:
Terminaland press Return.Homebrew and iTerm2
- While the MacOSX system comes with a proper shell by default, you will need a package manager to get the most out of it. I recommend installing the Homebrew (https://brew.sh) package manager on MacOSX. This will help you manage software installation from the command line.
- While the default terminal application on MacOSX is pretty good, the iTerm2 application is an excellent alternative to the standard MacOSX terminal.
Reference
For more reading, go to How to Use Terminal on a Mac
Native Linux users
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.
Some files you will need
After you have a working shell, you need to download some files to follow this lesson:
- Download
data-shell.zipand move the file to a location you can access in your bash environment. - Unzip/extract the file . You should end up with a new folder called
data-shell. 2 .Open a terminal and typecd, 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.