Introduction to LINUX

These are very elementary notes on LINUX, which is often described as an open-source version of the UNIX operating system. The department's CSCI 330 course is devoted to the subject. If you need more information than you find here, you can easily search on the WWW for "LINUX" or "UNIX" and find thousands of pages, most of which should agree with one another.

We are using a LINUX system known as "turing", using (by default) using the command shell known as "bash".


How to log on to the turing system

To log on to the system, you will need to provide your Logon ID (Z-number) and your password. If you have not used the system before, your default password is your birthdate in YYYYMMDD format, 8 digits.

After your first log-on, you should change your password. A password should usually be 6 to 8 characters long. Some choices may be rejected.


User Interface

LINUX uses a command-line interface, also known as a teletype interface. You start with a prompt, type a command and press Enter. The command is executed and the resulting output is printed. After that, the prompt again appears.

Our system's default prompt is of the form znumber@turing:~$.

You will find that LINUX does not necessarily use all the keys on the keyboard and it is not aware of the mouse.


Directory structure

LINUX uses a hierarchical file structure like that of DOS (or Windows, although Windows hides this somewhat). We have files and directories. (A directory is known in Windows as a "folder".) We can move around inside the directory structure, but we are always in some current directory.

A directory can contain files and other directories (called subdirectories), all with different names.

Names of files and directories may be up to 14 characters long, possibly longer. LINUX is case-sensitive.

When you log in, you will be in your home directory, several levels down from the root directory of the system. Your home directory is named after your Logon ID.

In some cases, we will need to provide a path to reach a given subdirectory. In general, a path is a list of directories, starting either from the root or from the current directory, each a subdirectory of the preceding one, separated by slashes.


Assorted commands