0% found this document useful (0 votes)
59 views2 pages

Linux Lab 5 Adiv

The document provides 7 questions as an assignment for an Operating System Lab class. It asks students to: 1) Explain several process-related commands like ps, kill, bc, and units with options. 2) Spawn shell processes and display the PID of the current and grandparent shells. 3) View all processes on the computer in a multipage output file. 4) Run 3 jobs in background with pauses between, and bring one job to the foreground. 5) Schedule processes to run after 10 minutes, including deleting a folder and listing disk usage. 6) Create a file to calculate salary with tax deductions over 2 lakhs. 7

Uploaded by

Abhijit S Desai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views2 pages

Linux Lab 5 Adiv

The document provides 7 questions as an assignment for an Operating System Lab class. It asks students to: 1) Explain several process-related commands like ps, kill, bc, and units with options. 2) Spawn shell processes and display the PID of the current and grandparent shells. 3) View all processes on the computer in a multipage output file. 4) Run 3 jobs in background with pauses between, and bring one job to the foreground. 5) Schedule processes to run after 10 minutes, including deleting a folder and listing disk usage. 6) Create a file to calculate salary with tax deductions over 2 lakhs. 7

Uploaded by

Abhijit S Desai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Bharati Vidyapeeth's

INSTITUTE OF MANAGEMENT AND INFORMATION TECHNOLOGY


C.B.D. Belapur Navi Mumbai

MCA Semester –II Lab Assignment for Operating System Lab (Linux)
Process Related and Mathematical Commands

Assignment No:-5 Date: - 06-03-18

Submission Date: - on or before 13/03/18


Q1. Explain the following commands with options
a) Process and process states b) batch c) nohup
d) ps with option e) kill f) bc
g) expr h) factor i) units

Q2. Open a terminal and spawn 3 shell processes one after another i.e. first spawn one
shell, then from the spawned shell, spawn one new shell and so on. Display the
PID of current shell, PID of shell which is the grandparent of the current shell?

Q3.How can you see all the processes (both system & user processes) in your
computer? View the output as multipage output and store the output in a file named
process_info?
Q4. Run the following 3 jobs in background with a pause of 30, 60 & 90 seconds after
each process for
a) sorting a file
b) searching a process named watchdog
c) zipping 3 files

From the above jobs bring the second job to the foreground.

Q5. Schedule the following processes to be executed after 10 minutes from current
time
a) deleting a folder from your drive
b) pause for 10 seconds
c) List out the disk used space for your directory
d) List the free space for file system
e) display the execution time of the last command executed

Q6. Create a file yourname_sal.dat to calculate the Gross salary (GS=Basic + 30 % of


HRA+ 90 % DA- PT). Assume basic salary and write a function to calculate
annual salary and display the tax (@2.5 %) deducted if annual salary is greater than
2 lakhs.

Q7. Solve the following expression using expr


((A+B)*C-(D-E)) ^ (F+G)
Where A=1, B=2, C=3, D=9, E=4, F=2, G=1

***********************************************************

You might also like