Demystifying the Kitchen: A Guide to Operating System Lingo
Understand from simple restaurant analogy some important terms of Operating System like kernel, shell, terminal, shell script, process, thread etc.
Let's start with imagining your computer system as a restaurant.
Here's how these terms would fit in:
KERNEL
The kernel is the head chef in the kitchen. It's the core of the operating system, responsible for all the essential tasks happening behind the scenes, like managing memory, allocating resources (CPU, storage), and handling communication between hardware and software. You (the user) can't directly interact with the head chef, but everything you experience relies on their work.
SHELL
The shell is the waiter who takes your order and delivers it to the kitchen (kernel). In the OS world, the shell acts as an interpreter between you (the user) and the kernel. It provides a user interface (UI) for interacting with the system.
There are two main types of shells:
Command-Line Interface (CLI): This is a text-based interface where you type commands to tell the shell what you want to do. It's like giving the waiter a written order. (Example: The command
ls
tells the shell to list the files in the current directory).Graphical User Interface (GUI): Some shells offer a more visual interface with icons, menus, and windows. This is like having a menu card to choose from, but behind the scenes, the shell translates your clicks into commands for the kernel. (Example: Clicking on a file icon in a file manager might trigger a shell command to open that file).
TERMINAL
The terminal is the window into the kitchen. It's a program that provides a way to access the shell. It displays the shell's prompt (like a blinking cursor) where you can type your commands, and it shows the output or response from the kernel after the shell interprets your commands. This is like the physical terminal at a restaurant where you write down your order and receive your food.
SHELL SCRIPT
A shell script is like a pre-written set of instructions for the waiter. It's a text file containing a series of shell commands that you can execute all at once. This is useful for automating repetitive tasks. For example, you could write a shell script that automatically backs up your files every day.
PROCESS
A running program on your computer. Imagine a process as a dish being prepared by the chefs (kernel) based on the order (command) received from the waiter (shell).
THREAD
A unit of execution within a process. A process can have multiple threads, like a single dish having multiple components being prepared simultaneously.
DESKTOP ENVIRONMENT (DE)
The graphical user interface (GUI) environment that sits on top of the shell and provides a familiar desktop experience with windows, menus, and applications. Common examples include GNOME, KDE Plasma, and XFCE on Linux systems. (Think of it as the table setting and overall ambiance of the restaurant).
PACKAGE MANAGER
A tool for installing, updating, and removing software on your system. Imagine it as the restaurant's inventory management system for keeping track of ingredients (software packages). Popular package managers include APT (Debian/Ubuntu) and Yum (Red Hat/CentOS) on Linux.
API (Application Programming Interface)
A set of rules and specifications that allow programs to communicate with each other. Imagine it as a standardized way for waiters from different restaurants to communicate special order requests to the kitchens (kernels) of other restaurants.
SYSTEM ADMINISTRATOR
The person responsible for maintaining and managing computer systems, including installing software, configuring settings, and ensuring security. They're the head chefs managing the entire kitchen (computer system) and its operations.
Subscribe to my newsletter
Read articles from Jasai Hansda directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Jasai Hansda
Jasai Hansda
Software Engineer (2 years) | In-transition to DevOps. Passionate about building and deploying software efficiently. Eager to leverage my development background in the DevOps and cloud computing world. Open to new opportunities!