Linux Lab 5 Adiv
Linux Lab 5 Adiv
MCA Semester –II Lab Assignment for Operating System Lab (Linux)
Process Related and Mathematical Commands
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
***********************************************************