What is Unix?

Unix is an operating system, just like Macintosh or Windows. The major difference between Unix and other operating systems is that it uses a command line interface, or command line for short: Instead of pointing and clicking like you would in a Windows or Macintosh machine, you type the commands that you want to run. The command line is typed in a Terminal, a window in which you can only type text. The Terminal emulates (i.e., reproduces the function of) a console.

../_images/Terminal_Example.png

Macintosh and Linux operating systems have Terminals installed. On a Macintosh, for example, click on the Finder magnifying glass, and type “Terminal”. When you open it, you should see something like the window on the right.

While this may look strange and maybe even tedious, in fact using the command line will allow you to be quicker, more flexible, and more efficient when running programs and analyzing data. You will also need to know Unix in order to use neuroimaging packages that are run from the command line, such as AFNI or FSL. And as you’ll see, becoming fluent in programming will save you time, minimize errors, and make you more versatile as a scientist.

Note

Linux operating systems (such as Ubuntu) come with a Terminal, as do recent versions of Macintosh operating systems. Windows users will need to download a Terminal emulator such as Cygwin. Although I record my tutorials on a Macintosh computer, once you have downloaded and installed Cygwin, you should be able to follow the rest of the tutorials.

Video

Click here to see a video introducing you to Unix. When you have finished watching the video, click the “Next” button down below to begin the Unix tutorial series.