Gentle Introduction to Linux

Reading:

Operating Systems

An operating system (OS) is one of the most basic bits of software that sits between you and the computer hardware. It "operates" the "system". Windows, or Mac OS X are both familiar examples of operating systems. An operating system allows you to do very fundamental things like:

The Unix/Linux Operating Systems

Unix is an operating system developed in the 1970s. Linux is an open source clone of Unix. Linux is widely used in scientific computing because it is freely available, has a large community of users and developers, and many scientific computing tools are available for it.

Mac OS X is also started as a clone of Unix, and so shares many of the same features.

What is the SCC?

The Specialised Computing Cluster (SCC) is a research computer located at CAMH. Actually, it is several computers "clustered" together to make it easy to divide up computing work among them. This becomes important when you have lots of data, or many different tasks to perform, or both and a single computer does not have the power to do your work in a reasonable amount of time.

Linux (specifically a flavour of linux called CentOS) is the operating system for the SCC.

Every CAMH researcher can apply for access to the SCC. If you are interested, send an email to david.rotenberg@camh.ca.

The terminal / the shell / the command line

aka the scary black window.

In Windows and Mac OS X, you pretty much only use the operating system through the desktop, by pointing and clicking with your mouse, etc. For scientific computing, you will often want to also use a command-line interface -- that is, you will want a way of typing out the commands you want the computer to do, rather than gesturing with your mouse.

Why? Because:

The shell is just a program. It is an interactive command-line interface we will use to do work and run other programs, and it is what the next two workshops focus on. It is called the 'shell' because on the surface you use it by typing, but inside it speaks directly to the operating system. Not a very good name, I know. There are different kinds of shells; we will use bash.

The terminal is the program used to display the shell and allow you to interact with it. In Windows, you will need to install cygwin to get a terminal window for a bash shell, and in Mac OS, you can use the Terminal program.

SSH: the secure shell for remote access

SSH is a program that allows you to remotely connect to another computer and start a shell on it in order to do work. It is what you will have to use in order to access the SCC.

To connect to the SCC (if you are on the CAMH network):

ssh test_user@scc.pipitone.ca

Use the password: scc_user

The filesystem: how files and folders are organized on linux

A brief tour of the shell

Basic commands:

Relative paths: