Practice
1. What is the main purpose of a task manager in a computer system?
easy
Solution
Step 1: Understand what a task manager does
A task manager shows running programs and processes on your computer.Step 2: Identify the main function
It allows you to monitor and control these running tasks, like ending a frozen program.Final Answer:
To view and control running programs and processes -> Option DQuick Check:
Task manager = control running programs [OK]
Hint: Task manager = see and manage running programs [OK]
Common Mistakes:
- Confusing task manager with software installer
- Thinking task manager creates backups
- Assuming task manager updates OS
2. Which command is used on Linux to display currently running processes in a terminal?
easy
Solution
Step 1: Recall Linux commands for process monitoring
Thetopcommand shows active processes and system resource usage.Step 2: Eliminate unrelated commands
installinstalls software,copycopies files,formatprepares disks.Final Answer:
top -> Option BQuick Check:
Linux process list = top command [OK]
Hint: Use 'top' to see running processes on Linux [OK]
Common Mistakes:
- Using 'install' instead of 'top' to view processes
- Confusing 'copy' with process commands
- Trying 'format' which erases disks
3. What will be the output of the following command on Windows?
tasklist | findstr chrome.exemedium
Solution
Step 1: Understand the 'tasklist' command
This command lists all running processes on Windows.Step 2: Understand the pipe and 'findstr' usage
The pipe sends output to 'findstr' which filters lines containing 'chrome.exe'.Final Answer:
Lists the 'chrome.exe' processes if active -> Option AQuick Check:
tasklist + findstr = filtered process list [OK]
Hint: Pipe tasklist to findstr to filter processes [OK]
Common Mistakes:
- Thinking it launches or deletes Chrome
- Confusing process listing with network info
- Assuming it modifies processes
4. You run the command
top -d on Linux but get an error. What is the likely problem?medium
Solution
Step 1: Check the '-d' option usage in 'top'
The '-d' option sets the delay between screen updates and requires a number argument.Step 2: Identify the error cause
If the number is missing or invalid, 'top' will show an error.Final Answer:
The '-d' option requires a number to specify delay in seconds -> Option CQuick Check:
top -d needs number argument [OK]
Hint: Use '-d' with a number for delay in top command [OK]
Common Mistakes:
- Thinking 'top' has no options
- Believing root is always needed to run 'top'
- Using wrong option case '-D' instead of '-d'
5. You want to monitor CPU and memory usage on a Linux server and save the output every 10 seconds to a file named
usage.log. Which command correctly does this?hard
Solution
Step 1: Understand 'top' options for batch mode and delay
The '-b' option runs 'top' in batch mode (non-interactive) suitable for logging. The '-n 0' option sets unlimited iterations for continuous output. The '-d 10' sets 10 seconds delay between updates.Step 2: Check correct syntax for options and redirection
Options must be separated by space: '-b -n 0 -d 10'. Using '>' overwrites the file, which is fine for fresh logs.Final Answer:
top -b -n 0 -d 10 > usage.log -> Option AQuick Check:
Batch mode + unlimited iterations + delay + redirect = top -b -n 0 -d 10 > usage.log [OK]
Hint: Use 'top -b -n 0 -d 10 > file' to log every 10 seconds [OK]
Common Mistakes:
- Omitting '-b' for batch mode causes interactive output
- Writing '-d10' without space can cause errors
- Using '>>' appends instead of overwriting unintentionally
