Linux
Linux
presented by
Vijay
2
WHAT IS UNIX ?
UNIX is an operating system which is available
as Open source
UNiplexed
UN Information Computing Systems
(UNICS)
UNIX PRINCIPLES
UNIX Architecture
USER App/Prog
Shell
Kernel
Heart of OS
Hard ware
Cont…
5
Kernel
Shell
• technically it is a program
• it is an Interpreter b/w user & kernel
• it takes i/p from user and checks weather the
command is proper UNIX command or not
6
Unix FEATURES
Multiuser
Multitasking
Documentation
Security
7
Flavours of UNIX
LINUX ( Redhat )
SUN SOLARIES ( Sun Microsystems )
IBM SIX ( IBM )
HP –UX ( HP )
8
IMPORTANCE
UNIX WINDOWS
Situation
A project team of 5 people of ABC is working on a s/w development project,
The team is headed by Analyst, the other are all programmers
One programmer may have to link his program with another programmer's
Program in order to test his program
10
Security by FAP
The following security related features are stored against each
file/directory in a UNIX system.
Cont….
11
r = 4
w = 2
x = 1
No permission = 0
Cont…..
12
a All
Cont….
13
chmod command
• chmod u-x,g+w,o-x file1 (symbolic mode)
Getting HELP
Whatis
Command --help
man
16
• id user1
17
Basic Commands
• pwd [$pwd]
• cd [$cd path]
• ls [$ls <options> <file>]
l,a,i,s,r,R,
• more [$more <file>]
• head [$head <options> <file>]
n
• tail [$tail <options> <file>]
cont…..
19
Cont…..
21
• ps [$ps <options>]
e,f
• kill [$kill <signal> pid]
15,9
• pkill [$pkill <signal> <pattern>]
Cont….
22
PIPE
pipe ( | )
cat /etc/passwd | wc –l
Vi Editor
Vi file1
• i inserts at cursor’s position
• I inserts at beginning of the record
• a inserts at cursor’s next character
• A inserts at ending of the record
• o make a new line below the cursor’s
position & enters
• O make a new line above the cursor’s
position & enters
Cont…..
24
Write/quit commands
• w write
• wq write and quit
25
Shell script
• It is an ordered collection of meaningful UNIX
commands.
Types of shells
Bourne shell
Korn shell
Perl shell
Pythan shell
26