Skip to content

This repo contains all the shell scripting programs done in Operating Systems Lab during my 4th semester Btech. The concepts such as Linux shell commands, command line input , operators, if-else, case if , loops . Also some CPU scheduling algorithms such as FCFS, SJF, SRTF, RR, HRRN etc were also implemented using shell scripting commands .

Notifications You must be signed in to change notification settings

TheAbhi2004/OS_Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐚 Shell Scripting Programs – Operating Systems Lab (4th Semester)

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.


📌 About the Lab

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

🧠 Key Concepts Covered

⚙️ Shell Scripting Fundamentals

  • 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

🧮 CPU Scheduling Algorithms Implemented

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

About

This repo contains all the shell scripting programs done in Operating Systems Lab during my 4th semester Btech. The concepts such as Linux shell commands, command line input , operators, if-else, case if , loops . Also some CPU scheduling algorithms such as FCFS, SJF, SRTF, RR, HRRN etc were also implemented using shell scripting commands .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published