English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

The kernel manages system resources: memory, cpu, devices etc.

The shell is a command interpreter. it translates the commands entered by the user into actions, acting as the interface for the user.

2007-01-12 02:53:41 · answer #1 · answered by Anonymous · 1 0

There's no direct relationship. The kernel is a set of programs that takes commands and interacts with the underlying hardware.

However, for most tasks, programming with the kernel is too tedious unless you are into serious C programming. Hence, UNIX designers wrote a layer of programs that does most of the work that a normal user would want and makes the kernel do it.

This layer was called the "shell" and the name stuck. So, a shell would be a program (or a set of programs) that interacts with the user and does the hard work of translating user requests into kernel-level calls that result in the output that the user wants.

In most UNIX systems, the user can bypass the shell and write C programs that make kernel calls to do the same thing - this is usually called low-level or kernel-level programming. With this you could build your own commands that do fancy things. In fact, you could write your own shell using this technique.

2007-01-12 02:54:45 · answer #2 · answered by Zapata 2 · 0 0

The shell acts as an interface between the user and the kernel. The kernel of UNIX 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.

2007-01-12 02:52:39 · answer #3 · answered by Just Bored!! 5 · 0 0

For this I would like to show a simple figure.The number signifies the level.
-----------------------------------------------------------------------
4.User Applications like your Music Players, Editors.
-----------------------------------------------------------------------
3.Shell
-----------------------------------------------------------------------
2. Operating System Kernel(UNIX)
-----------------------------------------------------------------------
1. Hardware(Your Computer:CPU,printer,hard disk)
-----------------------------------------------------------------------

Now The shell is just an interface by which you interact with the
operating systems (or its kernel).


Think Shell like a robot sensors. You are saying to your robot 'RUN'. the sensor will hear your command and do it. The thing which decides varuious decisions to be taken to initiate running, to move arms and legs is the kernel.

here RUN is a command(user application)
Robot Sensors-Shell
The control mechanism in the robot taking necessary actions like adjusting legs. -Operating System Kernel
The parts of robot like arms-Hardware

2007-01-13 03:51:17 · answer #4 · answered by John Samuel 1 · 0 0

fedest.com, questions and answers