1.) Lecture-2 - Linux Architectureffygccgg
1.) Lecture-2 - Linux Architectureffygccgg
ARCHITECTURE OF LINUX
Linux System Architecture
Linux System Architecture
Kernel
– The part of an OS where the real
work is done
File Management
– Control the
creation, removal
of files and
provide directory
maintenance
– For a multiuser
system, every user
should have its own
right to access files
and directories
Linux System Architecture
Process Management
– For a multitask system, multiple
programs can be executed
simultaneously in the system
– When a program starts to execute, it
becomes a process
– The same program executing at two
different times will become two different
processes
– Kernel manages processes in terms of
creating, suspending, and terminating
them
– A process is protected from
other processes and can
communicate with the
others
Linux System Architecture
Memory management
– Memory in a computer is divided into main
memory (RAM) and secondary storage
(usually refer to hard disk)
– Memory is small in capacity but fast in
speed, and hard disk is vice versa
– Data that are not currently used should
be saved to hard disk first, while data
that are urgently needed should be
retrieved and stored in RAM
– The mechanism is referred as memory
management
Device drivers
– Interfaces between the kernel and the
BIOS
– Different device has different driver
Kernel
A core component of Operating System without
which OS can't work
Kernel
Kernel
Linux File
Kernel
Linux File Access Privilege
Linux is a multiuser system, the files of all users are
stored in a single file structure
Mechanism is required to restrict one user to access the files
of another user, if he is not supposed to
User can impose access permission to each file to restrict its
access
The term “access permission” refers to
– read permission
– write permission
– execute permission
Linux File Access Privilege
Linux File Access Privilege
Linux File Access Privilege
Access permission can also be assigned to a directory
Directory is also a file that contains the attributes of the files
inside it
If read permission is not given to a directory
– cannot show the structure of this directory
– e.g. cannot use ls
If write permission is not given to a directory
– cannot modify anything of the directory structure
– e.g. cannot copy a file into this directory since it will
modify the directory structure by adding one more file
If execute permission is not given to a directory
nearly nothing can be done with this directory, even cd
Linux File Access Privilege
The access permission of a file or directory can be changed by
using the command