This repository contains all the Shell Scripting programs developed as part of the Operating Systems Lab during the 4th semester of B.Tech in Information Technology. The programs focus on mastering the Linux shell environment and simulating key CPU scheduling algorithms using shell scripts.
The OS Lab aimed to enhance our understanding of:
- Linux shell and terminal usage
- Writing and executing shell scripts
- Implementing decision-making and looping constructs
- Simulating CPU scheduling algorithms using Bash
- Linux shell commands (bash/sh)
- Command-line input/output
- Conditional statements:
if
,if-else
,case
- Loops:
for
,while
,until
- Operators: Arithmetic, Logical, Relational
- Functions in shell scripting
- File handling and permissions
Algorithm | Description |
---|---|
FCFS (First-Come First-Serve) | Non-preemptive algorithm that executes processes in order of arrival |
SJF (Shortest Job First) | Selects the process with the smallest burst time |
SRTF (Shortest Remaining Time First) | Preemptive version of SJF |
RR (Round Robin) | Time-sharing scheduling using a fixed time quantum |
HRRN (Highest Response Ratio Next) | Non-preemptive algorithm that schedules based on response ratio |