COMP 212 – OPERATING SYSTEMS
Lab 4: Process Management
TAs: Rahul Pragji
Lecturer: Dr Oteng Tabona
Lab Objectives
At the end of the class, you should be able to:
1. Learn and use basic Linux commands
2. Understand process management
3. Initiate a process on Linux operating system using Ubuntu
4. Perform different processes on Windows Operating systems
LAB OVERVIEW
In this lab, you will practice basic process management tasks and Linux command.
PRACTICING BASIC PROCESS MANAGEMENT TASKS
A Process lifecycle analysis: Access the virtual lab using the link below and perform simple
process management on the Linux Operating system.
Instruction: Here Is a mini lab exercise to equip you with practical experience of process
management using Ubuntu.
Sign up using the link below and complete the process management tasks below, using the
provided virtual machine in the Lab environment
[Link]
Task 1 – Basic Linux Commands
Type the following commands
1. Print your name on the screen
2. ls – list file in your current directory
3. pwd – print working directory
4. mkdir – make directory, let’s make a directory called week4
5. cd – change directory, change directory to week4
6. Show the current directory that you are at.
7. Create a file called [Link] use the touch command
8. Rename the file to w4_test.txt
Task 2 – Process Life
1. Create a process (i.e. open the web browser: run “firefox” to run the process in the
background use “firefox &”)
2. Type ps – el to see a list of active processes and their details
3. Search for the firefox process
4. Display current process information (ps aux | grep firefox)
5. Display processes in a tree-like format
6. The top command provides real-time dynamic view of running processes
7. Show top processes consuming CPU (top –o %CPU)
8. Show top processes consuming memory
9. Find a process by name and kill it
The End