Linux Basics

Operating System:

It is a software program designed to act as an interface between a user
and the computer. It controls the hardware, manages the system resources
and supervises interaction between the system and its users.

Functions of Linux:

i) Command Interpreter:

The operating system interprets the command i.e. input instruction
given
by the
user and translates its to the machine language. Similarly, it also
translates
the result of a command i.e. output from the machine to the language,
which the
user understands. This is known as command interpretation.

ii) Peripheral Manager:

The operating system manages the device attached to its system. Inputs
from the
keyboard or mouse are taken as commands, which is sent to the printer or
monitor
as output. This procedure of accepting the input and producing output is
managed
by the operating system is known as peripheral management.

iii) Process Manager:

Since there might be different processes running simultaneously within a
computer, the amount of time to be spent on a process by the CPU or RAM is
decided by the operating system. This is called process management.

Key Features of Linux:

i) Kernel Programming Interface:

It is also called the heart of the Linux Operating System. Kernel is the
central, memory resident part of the operating system that allocates
resources,
manages memory and controls processes. Linux being a freeware has an open
source
code, so that anyone can manipulate the kernel configuration and even
binary or
library files as per his requirements.

ii) Multi-user Operating System:

A multi-user operating system allows many users to access all the system
resources almost simultaneously. The term multi-user is the capability of
the
kernel to allocate CPU time to many applications once, thus serving many
users
at once when each is running once or more applications. Depending on the
hardware being used and the work being performed, a single UNIX host can
support
anywhere from a single user to numerous simultaneous users.

iii) Multi-tasking Operating System:

Linux is fully protected multi-tasking operating system. It is also
referred to
as multiprocessing, i.e. the kernels capability to run more than one job
or
process at a time, and each process is protected (separated) from one
another.
Here each process can also communicate with each other through either a
shared
memory area or pipes between the processes.

iv) X Window System:

The X window system provides the foundation for the graphic user interface
(GUI)
available with Linux. A user can interact with the computer through
multiple
windows on screen for displaying graphical information.

v) Networking System:

Comparatively, networking system in Linux is more reliable. It supports
the
large range of networks from the simple LAN to fast Ethernet, Token ring,
FDDI,
ISDN the most commonly used networks. Linux networking supports many
valuable
utilities that allow the user to access remote systems over a variety of
networks.

vi) Software Development Environment:

Linux is rich is its software development environment. The languages that
are
either available or as well as support Linux include Ada, Pascal, Lisp,
Fortran,
C, C++, Java, Perl, CGI, PHP,etc.

vii) Database Connectivity:

Linux supports a large range of database connectivity such as PostgreSQL,
MySQL,
JDBC and Oracle.

Parts of Linux System:

a) Kernel:

Kernel forms the core of the Linux Operating System. This interacts with
the
hardware and is loaded into the memory when a system is booted. Their
functions
are:

1) Managing the system resources.

2) Allocating time for different users and processes.

3) Deciding process priorities and performing them.

Kernel doesnt interact with the user directly. Instead, it starts up a
separate file called SHELL.

b) Shell:

Shell interacts with the user and computer. Its prime features are as
follows:

1) Interactive processing: Communicating between the user and the system
takes
the form of interactive dialogue with the shell.

2) Background processing: Some processes, which are time consuming, are
non-interactive in nature. Such processes can be run in the background
while
continuing to use the system to do other tasks.

3) Input/ Output Redirection: Programs can be instructed to take input
from a
file other than standard input i.e. the keyboard or mouse send the output
to a
file instead of the standard output i.e. monitor. This is called
redirection.
Here, simultaneous use of Input and Output redirection is possible.

4) Pipes: Simple programs can be developed to do complex operations with
minimum
effort using pipes. This reduces the necessity for writing new programs
for the
complex operations.

5) Wild card patterns: It is used for grouping together and performing
actions
for the files matching a particular pattern.

6) Shell scripts: It contains a sequence of commands t be performed with a
single filename. A shell script is a text file that instructs the shell
into
performing a sequence of action. The scripts are executed using that
filename.

Leave a Reply

Your email address will not be published. Required fields are marked *


*