What is the primary function of a shell in an operating system?

What is the primary function of a shell in an operating system?

a) To provide an interface between the user and the kernel
b) To manage system memory
c) To handle file management
d) To manage network connections

Answer:

a) To provide an interface between the user and the kernel

Explanation:

The shell is a program that provides an interface for users to interact with the kernel of an operating system. It allows users to execute commands, run applications, and manage files and directories through a command-line or graphical interface.

The shell interprets user commands and passes them to the kernel for execution. It also displays the output or result of those commands to the user.

Common examples of shells include Bash in Linux and Command Prompt in Windows.

Reference:

Operating System MCQ (Multiple Choice Questions)

Scroll to Top