Introduction To Linux Operating Sysytem Final
Introduction To Linux Operating Sysytem Final
OPERATING SYSTEM
Taimoor Khurshid
Exp High Energy Physics Group
National Center for Physics
LINUX OPERATING SYSTEM
Linux operating system consists of Kernel, Shell and File System:
The kernel
!Kernel is heart of Linux OS
!It manages resource of Linux OS
!Resources means facilities available in
Linux. For e.g. Facility
!To store data,
!Print data on printer,
!Memory
!File management
!Kernel decides who will use resources, for how long and
when.
!It runs your programs (or set up to execute binary files).
!The kernel acts as an intermediary between the computer
hardware and various programs/application/shell.
LINUX OPERATING SYSTEM
Linux operating system consists of Kernel, Shell and File System:
The Shell
!The shell is a program that acts as an interface between users and
kernel
!It is a command interpreter and also has programming capability of
its own.
!Shell Types
!Bourne Shell (sh) (First shell by Stephen Bourne)
!C Shell(sh)
!Korn Shell (ksh)
!Bourne Again Shell(bash)
!Filename Completion or TAB completion
!History - The shell keeps a list of the commands you have typed in
File System
!Linux treats everything as a file including hardware devices.
Arranged as a directory hierarchy.
!The top level directory is known as “root (/)”.
DIFFERENT SHELLS
AVAILABLE IN LINUX
Program
Shell Description
Name
"/home/its/ug1/ee51vn/report.doc"
DIRECTORIES IN LINUX
Directory: /bin
/bin contains the binaries which are needed to run LINUX.
Directory: /boot
/boot has all the files required for booting LINUX on system.
Directory: /dev
/dev has the devices for all the files.
Directory: /etc
/etc contains the configuration files of the various software.
Normally no one touch this directory.
Directory: /home
/home is like My Documents in Windows.
This contains the username as the sub directory.
Directory: /lib
/lib contains the shared libraries required for the system files.
DIRECTORIES IN LINUX
Directory: /lost+found
/lost+found contains the files which are damaged or which are
not linked to any directory.
These damages are due to the incorrect shutdown.
Directory: /mnt
This is the directory in which we mount the devices and other
file systems.
Directory: /opt
Here the optional softwares are installed.
Directory: /root
The directory for the user root
LINUX COMMANDS
Commands tell the operating system to perform set of operations.
The syntax form of the commands are
Command options arguments
history:
prints recently used commands
Usage: history
PATTERN
A Pattern is an expression that describes a set of strings
which is used to give a concise description of a set,
without having to list all elements.
Example:
ab*cd matches anything that starts with ab and
ends with cd etc.
Examples:
To reload any initialization file without having to logout and login again, type
source <filename>
e.g. source ~/.bashrc
source ~/.tcshrc
Profile files: session startup files are hidden files, find them via command “ls –a”….