1/28
Comprehensive vocabulary flashcards covering introductory operating system concepts, process lifecycles, memory segments, system calls, and Linux shell scripting from Tutorial 1 and Lecture 1.
Kernel
The core component of the operating system that directly controls hardware and manages critical system resources, including processes, memory allocation, files, I/O devices, and system security.
Operating System (OS)
System software that manages hardware resources and provides fundamental services for user applications, functioning as a resource manager, service provider, and hardware interface.
Terminal
The graphical application window that provides a text-based user interface for entering commands, viewing output, and interacting with a command interpreter.
Shell
A program running inside a terminal (such as Bash, Zsh, or Ksh) that interprets user commands, manages shell scripting features, launches programs, and requests operating system services.

Secure Shell (SSH)
A network protocol and utility that provides an encrypted, authenticated connection to log into and run commands on a remote system (such as the university server Xanthus).
pwd
A Linux shell command ('print working directory') that outputs the absolute path of the current working directory.
touch
A Linux shell command used to create a new, empty file or update the access and modification timestamps of an existing file.
grep
A command-line utility used to search files or input streams for lines that match a specified pattern or regular expression.
wc
A command-line utility ('word count') that displays the number of lines, words, and bytes contained in a specified file.
Shell Script
An executable text file containing a sequence of commands executed line-by-line by a shell interpreter, designed for automation, batch processing, and reproducibility.
Shebang (#!/bin/bash)
The initial character sequence at the top of a script that identifies the path to the specific interpreter used to parse and execute the script file.
Exit Status
A numerical value returned by a command or script upon termination, where an exit status of 0 represents success and any non-zero value indicates an error or failure.
Environment Variables
System-wide predefined variables (such as USER</code>,<code>HOME, SHELL</code>,and<code>PATH) that describe configuration settings and paths in the current shell session, viewable using env or printenv.
Special Parameter $#
A built-in Bash parameter that holds the total count of positional arguments passed to the script from the command line.
Special Parameter $?
A built-in Bash parameter that contains the exit status of the most recently executed foreground command.
Program
A passive entity consisting of compiled machine code and static data stored on disk that is not currently running.
Process
An active instance of a program in execution, having its own dedicated execution state, program counter, processor registers, and allocated memory regions.
Program Counter (PC)
A hardware register within the CPU that stores the memory address of the next instruction scheduled for execution.
Stack Segment
The memory segment of a process that dynamically stores function call frames, local variables, and return addresses, expanding downward toward lower memory addresses.

Heap Segment
The region of process memory reserved for dynamic memory allocation managed at runtime, which grows upward toward higher memory addresses.
Ready State
A process lifecycle state in which a process resides in memory and is fully prepared to execute, waiting for the operating system CPU scheduler to dispatch it.
Waiting / Blocked State
A process state in which execution is suspended while waiting for an external event to complete, such as disk I/O, a network response, or resource availability.
Zombie Process
A completed process that has ended execution but retains an entry in the kernel process table to preserve its exit status until its parent process invokes wait() or waitpid().

Process State Transition
The movement of a process among execution states (New, Ready, Running, Waiting/Blocked, Terminated) triggered by events such as scheduler dispatch, timer preemption, I/O waits, or completion.

Preemption
The involuntary suspension of a currently running process by the operating system, triggered by an expired CPU time slice or the arrival of a higher-priority process, shifting it back to the Ready state.
Context Switch
The mechanism by which an operating system saves the current CPU state of an executing process to its PCB and restores the saved state of another process to resume execution on the CPU.

Process Control Block (PCB)
A kernel data structure dedicated to an individual process that stores its process ID (PID), current state, program counter, CPU registers, memory bounds, and open file descriptors.
System Call
The controlled interface through which user-space application code requests privileged services and operations directly from the operating system kernel.

CPU Virtualisation
An operating system abstraction that gives each running process the illusion of having exclusive access to its own private processor, implemented via time slicing, scheduling, and context switching.