You are on page 1of 5

FINAL EXAM

Name: Arbaz Ahmad Khan

Roll No: BCSM -F18-308

Subject: Operating system

Class: BSCS

Section: 5A

Submitted To: Sir Saleem Mustafa


Q#1
Write down each command on terminal with example.

Pwd, mkdir, cd, ls, rmdir, cp -r , sudu -i , whatis ,touch, tail


Q#2
Write a program in C language which find the factorial of positive integer number and
write down commands for execution on the terminal.
Q#3

Write program in C print natural numbers from 1 to 10 using for loop and create a fork ()
you will see numbers will be printed twice, because of fork (), it will create duplicate copy
of the process.

You might also like