The kernel is the hub of the operating system: it allocates
time and memory to programs and handles the filestore and
communications in response to system calls.
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
arranges for them to be carried out. The commands are
themselves programs: when they terminate, the shell gives
the user another prompt.
kernel basically act as a interface to the hardware. it
gives commands in low level language to the hardware for
intereact it with our OS
while shell is a command line interpreter. it interprete
the command written in HLL to LLL and send it to the kernel
to perform it. So in this way we can say that kernel is
heart of the OS while shell is mind.
Kernel is the part of UNIX operating system which is
responsible for the creation and management of files and
processes. It interacts directly with the machine hardware.
It is represented by the file unix or vmlinuz, which is
loaded into memory when the machine is booted.
Shell is the command interpreter of the UNIX operating
system which runs perpetually at every logged-in terminal.
The shell processes a user request and interacts with the
kernel to execute the command. It also possesses a
1. core of the UNIX
2. provides file system, CPU scheduling, memory management, and other functions of OS through system calls.
1. a command interpreter.
2. called a shell because it surrounds the kernel.