Unix Operating System: Parts

Introduction: The UNIX Operating System

This tutorial teaches some basics about UNIX. Like Microsoft Windows and Apple Mac OS, UNIX is an operating system. By operating system, we mean the suite of programs that make the computer work. The supercomputer runs a variant of UNIX called Linux. Because jobs must be submitted to the supercomputer using UNIX commands, it is pertinent that you, as a user of the supercomputer, obtain at least a basic knowledge of the UNIX environment.

The UNIX operating system

In general, the UNIX operating system is made up of three parts; the kernel, the shell, and the programs.

1.       The kernel

If we think of the UNIX operating system in terms of layers, the kernel is the lowest layer. It interfaces directly with the computer hardware and is responsible for allocating and managing the resources available to programs. It allocates processor time and memory to each program and determines when each program will run.

what do you mean by processes in a Unix environment

The kernel also provides an interface to programs whereby they may access files, the network, and devices.

2.       The shell

The shell acts as an interface between the user and the kernel. When a user logs in, the login program checks the username and password and then starts another program called the shell. The shell is a command-line interpreter (CLI). It interprets the commands the user types in and executes them. The commands are themselves programs. Once programs terminate, control is returned to the shell and the user receives another prompt ($ on our systems), indicating that another command may be entered.

The default shell for users on the supercomputer is the bash shell, but each user can customize his/her shell. Please see the FAQ question "How do I change my password and/or login shell?" from the marylou4 FAQ on the left for more information on how this is done. Most shells, including bash, provide features that make inputting commands easier for the user. Here are just a few of those features:

Tab Completion - By typing part of the name of a command, filename, or directory and pressing the [Tab] key, the shell will complete the rest of the name automatically. If the shell finds more than one name beginning with those letters you have typed, it will show you all of the possibilities beginning with that combination.

History - The shell keeps a list of the commands you have typed in. If you need to repeat a command, you can use the up and down arrow keys to scroll up and down the list or enter history for a list of previous commands.

3.       The programs

One of the main features of UNIX is that it includes a variety of small programs to meet various needs. Typically, each of these programs does one thing and does it well. This modular design allows the functionality of small programs to be mixed and matched. As you become more familiar with UNIX, you will find that this design provides you great flexibility and power to accomplish almost any task. Typically these programs operate on top of the shell, but they may also interface directly with the kernel.

Comments

Popular posts from this blog

Networking technology salaries

Apple Certified Support Professional macOS 11 Course

Network technicians salary