You are on page 1of 5

Shri G. S.

Institute of Technology & Science


Operating System
Lab Assignment 1
INDEX

S.No Questions Page no. Remarks


.
1. What is operating system & explain its features of
operating system.

2. What is Linux ? explain introduction of Linux &


architecture of Linux?

3. Perform case study by installing and exploring various


types of operating systems on a physical or
logical(virtual) machine.(Linux installation)

4. What is comparison of all operating system?

5. What are functions of operating system explain in detail?

6. What are the internal commands. Explain it? Give 10


commands with syntax and examples(with screenshots)?

7. What are the external commands. Explain it? Give 10


commands with syntax and examples(with screenshots)?

8. What are the file manipulation commands. Explain it?


Give 5 commands with syntax and examples(with
screenshots)?
Shri G. S. Institute of Technology & Science
Operating System
Lab Assignment 2
INDEX
S.No Programs Page no. Remarks
.
1. Linux shell script program to create and print the values
of variable.

2. Linux shell script program using calculator operations


like +, -, *, /, %, ^, ++, -- operator. Perform all operations
and read the values from the user terminals.

3. Linux shell script program to swap two numbers using


third variable and without using third variable.

4. Linux shell script program to print program name using


command line argument and also Linus shell script
program to execute ‘ls’ command.

5. Bach shell script to find sum of digits.

6. Linux shell script to display good morning, good


afternoon, good evening according to system time.

7. Linux shell script program to demonstrate the ‘$#’


variable and Linux shell script program to print the
current process id.

8. Linux shell script to demonstrate comparison operator.

9. Linux shell script to find the number is even or odd.

10. Linux shell script to find number is prime or not.

11. Linux shell script to find greatest of two number and


three number from user input.

12. Linux shell script factorial of number from user input.

13. Linux to demonstrate switch case statement.

14. Linux shell script program whether year is leaping year


or not?

15. Linux shell script program Armstrong no. Or not?


Shri G. S. Institute of Technology & Science
Operating System
Lab Assignment 3
INDEX
S.No Programs Page no. Remarks
.
1. Write a shell script to generate marksheet of a student.
Take 3 subjects, calculate and display total marks,
percentage and Class obtained by the student. Take marks
from the user terminal.

2. Write a shell script to find the largest among the 3 given


numbers in UNIX / Linux. Using looping statements.

3. Write a menu driven shell script which will print the


following menu and execute the given task.
a) Display calendar of current month
b) Display today’s date and time
c) Display usernames those are currently logged in the
system
d) Display your name at given x, y position
e) Display your terminal number
f) Exit

4. Write a shell script that displays a list of all the files in


the current directory.

5. Write a shell script that receives any number of file


names as arguments checks if every argument supplied is
a file or a directory and reports accordingly. whenever the
argument is a file or directory.

6. Write a shell script to find the factorial of given integer.

7. Write a Shell script to list all of the directory files in a


directory.
8. Write Shell Script to print multiplication table of a given
number.
9. Write Shell Script to calculate power of a number using
while & for loop
10. Write Shell Script to find HCF of two numbers.
11. Write Shell Script Make directory by checking existence.

12. Write Shell Script Counting characters, words & lines in


the file.

13. Write Shell Script to print contents of an array.

14. Write Shell Script for simple calculator to perform


addition subtraction multiplication and division based on
the symbol using case statements.

15. Write Shell Script for Add array elements - Shell Script

16. Write Shell Script reverse elements in array.

17. Write shell script program to addition, subtraction,


multiplication of two matrix.

18. Write Shell program to add two numbers using functions.

19. Write Shell Script to compare two strings in unix shell


script.

20. Write a shell program to demonstrate Equal operator (=),


Not Equal operator (!=),Less than (\<),Greater than (\>)
operation on two strings.

21. Write a Program for system calls of Unix operating


systems (opendir, readdir, closedir).

22. Write a Program for Process system calls of Unix


operating systems (fork, getpid, exit).

23. Write the program to implement the system calls wait ( )


and exit ( ).

24. write a program to implement the system call execl ( ).

25. write a program to implement the system call execv ( ).

26. write the program to implement the system calls opendir


( ),readdir ( ),closedir ().

Shri G. S. Institute of Technology & Science


Operating System
Lab Assignment 4
INDEX
S.No Programs Page no. Remarks
.
1. Write a C program to implement and CPU & scheduling
algorithm for first come first serve scheduling take user
input.

2. Write a program to implement CPU scheduling algorithm


for shortest job first scheduling. Take user input.

3. Write a program to implement CPU scheduling algorithm


for shortest job remaining first. Take user input.

4. Write a C program to perform priority scheduling and


take user input.

5. Write a program to implement CPU scheduling for


Round Robin Scheduling.

You might also like