UNIX MCQs – Process Monitoring (Part – 1)

UNIX Question and Answer – UNIX’s Process Monitoring

UNIX MCQ – Multiple Choice Questions for exam, interview, and Entrance Test

1. Which command is used to display information about system processes in UNIX?

a) ps

b) top

c) pgrep

d) pstree

Answer: a) ps

Explanation: The ps command is used to display information about system processes in UNIX.


2. What command provides a dynamic real-time view of system performance in UNIX?

a) ps

b) top

c) pgrep

d) pstree

Answer: b) top

Explanation: The top command provides a dynamic real-time view of system performance, including CPU and memory usage, in UNIX.


3. Which command is used to find processes based on name in UNIX?

a) ps

b) top

c) pgrep

d) pstree

Answer: c) pgrep

Explanation: The pgrep command is used to find processes based on name in UNIX.


4. What command is used to terminate a process by specifying its process ID (PID) in UNIX?

a) kill

b) top

c) pgrep

d) pstree

Answer: a) kill

Explanation: The kill command is used to terminate a process by specifying its process ID (PID) in UNIX.


5. Which command is used to send a signal to multiple processes in UNIX?

a) kill

b) killall

c) pkill

d) pgrep

Answer: b) killall

Explanation: The killall command is used to send a signal to multiple processes by name in UNIX.


6. What command is used to display the processes in a tree-like structure in UNIX?

a) ps

b) top

c) pgrep

d) pstree

Answer: d) pstree

Explanation: The pstree command is used to display the processes in a tree-like structure in UNIX.


7. Which signal is commonly used to terminate a process gracefully in UNIX?

a) SIGINT

b) SIGKILL

c) SIGTERM

d) SIGSTOP

Answer: c) SIGTERM

Explanation: The SIGTERM signal is commonly used to terminate a process gracefully in UNIX.


8. What command is used to send a signal to a process based on its name in UNIX?

a) kill

b) killall

c) pkill

d) pgrep

Answer: c) pkill

Explanation: The pkill command is used to send a signal to a process based on its name in UNIX.


9. Which command is used to display the current system load averages in UNIX?

a) ps

b) top

c) uptime

d) loadavg

Answer: c) uptime

Explanation: The uptime command is used to display the current system load averages in UNIX.


10. What signal is used to stop a process temporarily in UNIX?

a) SIGINT

b) SIGKILL

c) SIGSTOP

d) SIGTERM

Answer: c) SIGSTOP

Explanation: The SIGSTOP signal is used to stop a process temporarily in UNIX.


11. Which command is used to continue a stopped process in UNIX?

a) kill

b) killall

c) continue

d) fg

Answer: d) fg

Explanation: The fg command is used to continue a stopped process in UNIX.


12. What is the purpose of the renice command in UNIX?

a) Change the process name

b) Change the process owner

c) Change the process priority

d) Change the process group

Answer: c) Change the process priority

Explanation: The renice command is used to change the priority of a running process in UNIX.


13. Which command is used to display information about the currently running processes and their resource usage in UNIX?

a) procstat

b) top

c) psinfo

d) ps

Answer: b) top

Explanation: The top command displays information about the currently running processes and their resource usage in UNIX.


14. What signal is used to kill a process immediately in UNIX?

a) SIGKILL

b) SIGTERM

c) SIGINT

d) SIGSTOP

Answer: a) SIGKILL

Explanation: The SIGKILL signal is used to kill a process immediately in UNIX.


15. Which command is used to display information about processes that are consuming the most CPU resources in UNIX?

a) ps

b) top

c) cpustat

d) perf

Answer: b) top

Explanation: The top command displays information about processes that are consuming the most CPU resources in UNIX.


16. What command is used to send a signal to a process based on its process ID (PID) in UNIX?

a) kill

b) killall

c) pkill

d) pgrep

Answer: a) kill

Explanation: The kill command is used to send a signal to a process based on its process ID (PID) in UNIX.


17. Which command is used to display detailed information about a specific process in UNIX?

a) procinfo

b) process

c) pinfo

d) ps

Answer: d) ps

Explanation: The ps command is used to display detailed information about a specific process in UNIX.


18. What signal is used to gracefully terminate a process in UNIX?

a) SIGTERM

b) SIGINT

c) SIGKILL

d) SIGSTOP

Answer: a) SIGTERM

Explanation: The SIGTERM signal is used to gracefully terminate a process in UNIX.


19. Which command is used to send a signal to all processes except for those in the same process group as the sender in UNIX?

a) kill

b) killall

c) pkill

d) pgrep

Answer: b) killall

Explanation: The killall command is used to send a signal to all processes except for those in the same process group as the sender in UNIX.


20. What command is used to display information about the currently running processes in UNIX?

a) ps

b) proc

c) processinfo

d) pinfo

Answer: a) ps

Explanation: The ps command is used to display information about the currently running processes in UNIX.


21. Which command is used to display information about memory usage by processes in UNIX?

a) memstat

b) top

c) ps

d) vmstat

Answer: b) top

Explanation: The top command displays information about memory usage by processes in UNIX.


22. What signal is used to interrupt a process in UNIX?

a) SIGTERM

b) SIGINT

c) SIGKILL

d) SIGSTOP

Answer: b) SIGINT

Explanation: The SIGINT signal is used to interrupt a process in UNIX, typically triggered by pressing Ctrl+C.


23. Which command is used to display information about the currently running processes and their resource usage in UNIX?

a) ps

b) pstree

c) procinfo

d) top

Answer: a) ps

Explanation: The ps command is used to display information about the currently running processes and their resource usage in UNIX.


24. What signal is used to suspend a process in UNIX?

a) SIGSTOP

b) SIGINT

c) SIGTSTP

d) SIGTERM

Answer: c) SIGTSTP

Explanation: The SIGTSTP signal is used to suspend a process in UNIX, typically triggered by pressing Ctrl+Z.


25. Which command is used to display information about the parent-child relationships between processes in UNIX?

a) ps

b) top

c) pstree

d) ptree

Answer: c) pstree

Explanation: The pstree command is used to display information about the parent-child relationships between processes in UNIX.


26. Which command is used to display the CPU time usage of a process in UNIX?

a) ptime

b) ptimes

c) time

d) cputime

Answer: c) time

Explanation: The time command is used to display the CPU time usage of a process in UNIX.


27. What signal is used to resume a suspended process in UNIX?

a) SIGSTOP

b) SIGCONT

c) SIGINT

d) SIGTERM

Answer: b) SIGCONT

Explanation: The SIGCONT signal is used to resume a suspended process in UNIX.


28. Which command is used to display the status of a specific process in UNIX?

a) status

b) ps

c) pstat

d) procstatus

Answer: b) ps

Explanation: The ps command is used to display the status of a specific process in UNIX.


29. What is the purpose of the nice command in UNIX?

a) Adjust process priority

b) Terminate processes

c) Display CPU usage

d) Display memory usage

Answer: a) Adjust process priority

Explanation: The nice command is used to adjust the priority of processes in UNIX.


30. Which signal is used to terminate a process gracefully by default in UNIX?

a) SIGKILL

b) SIGTERM

c) SIGINT

d) SIGSTOP

Answer: b) SIGTERM

Explanation: The SIGTERM signal is used to terminate a process gracefully by default in UNIX.


31. What command is used to change the scheduling priority of a process in UNIX?

a) nice

b) renice

c) pri

d) prio

Answer: b) renice

Explanation: The renice command is used to change the scheduling priority of a process in UNIX.


32. Which command is used to display information about memory usage by processes in UNIX?

a) memusage

b) pmem

c) pmap

d) memstat

Answer: c) pmap

Explanation: The pmap command is used to display information about memory usage by processes in UNIX.


33. What is the purpose of the killall command in UNIX?

a) Terminate processes by name

b) Terminate processes by PID

c) Terminate all processes

d) Terminate background processes

Answer: a) Terminate processes by name

Explanation: The killall command is used to terminate processes by name in UNIX.


34. Which signal is used to terminate a process immediately in UNIX?

a) SIGKILL

b) SIGTERM

c) SIGINT

d) SIGSTOP

Answer: a) SIGKILL

Explanation: The SIGKILL signal is used to terminate a process immediately in UNIX.


35. What command is used to display information about system resources and running processes in UNIX?

a) sysinfo

b) resource

c) resstat

d) top

Answer: d) top

Explanation: The top command is used to display information about system resources and running processes in UNIX.


36. Which command is used to change the scheduling priority of a process that is already running in UNIX?

a) nice

b) renice

c) prio

d) priority

Answer: b) renice

Explanation: The renice command is used to change the scheduling priority of a process that is already running in UNIX.


37. What signal is used to suspend a process temporarily in UNIX?

a) SIGSTOP

b) SIGTSTP

c) SIGCONT

d) SIGINT

Answer: a) SIGSTOP

Explanation: The SIGSTOP signal is used to suspend a process temporarily in UNIX.


38. What command is used to display information about system processes in a hierarchical format in UNIX?

a) htop

b) pstree

c) ptree

d) ps

Answer: b) pstree

Explanation: The pstree command is used to display information about system processes in a hierarchical format in UNIX.


39. Which command is used to display the status of background jobs in UNIX?

a) jobs

b) bg

c) status

d) pstree

Answer: a) jobs

Explanation: The jobs command is used to display the status of background jobs in UNIX.


40. What is the purpose of the prstat command in UNIX?

a) Display process statistics

b) Display printer status

c) Display system statistics

d) Display memory usage

Answer: a) Display process statistics

Explanation: The prstat command is used to display process statistics in UNIX.


41. Which signal is used to terminate a process by default in UNIX?

a) SIGTERM

b) SIGINT

c) SIGKILL

d) SIGSTOP

Answer: a) SIGTERM

Explanation: The SIGTERM signal is used to terminate a process by default in UNIX.


42. What command is used to display information about system processes and their resource usage in UNIX?

a) psinfo

b) pinfo

c) psaux

d) ps

Answer: d) ps

Explanation: The ps command is used to display information about system processes and their resource usage in UNIX.


43. Which command is used to change the scheduling priority of a process before executing it in UNIX?

a) priority

b) nice

c) niceness

d) pri

Answer: b) nice

Explanation: The nice command is used to change the scheduling priority of a process before executing it in UNIX.


44. What is the purpose of the bg command in UNIX?

a) Bring a background job to the foreground

b) Suspend a foreground job

c) Terminate a background job

d) Display background jobs

Answer: a) Bring a background job to the foreground

Explanation: The bg command is used to bring a background job to the foreground in UNIX.


45. Which signal is used to interrupt a process in UNIX?

a) SIGINT

b) SIGKILL

c) SIGTERM

d) SIGSTOP

Answer: a) SIGINT

Explanation: The SIGINT signal is used to interrupt a process in UNIX, typically triggered by pressing Ctrl+C.


46. What command is used to display information about system processes and their resource usage in real-time in UNIX?

a) pstop

b) psreal

c) prstat

d) top

Answer: d) top

Explanation: The top command is used to display information about system processes and their resource usage in real-time in UNIX.


47. Which command is used to change the scheduling priority of a process in UNIX?

a) prio

b) pri

c) niceness

d) nice

Answer: d) nice

Explanation: The nice command is used to change the scheduling priority of a process in UNIX.


48. What is the purpose of the kill command in UNIX?

a) Terminate a process

b) Suspend a process

c) Resume a process

d) Display process information

Answer: a) Terminate a process

Explanation: The kill command is used to terminate a process in UNIX.


49. Which command is used to display information about system processes and their resource usage in UNIX?

a) psinfo

b) pinfo

c) psaux

d) ps

Answer: d) ps

Explanation: The ps command is used to display information about system processes and their resource usage in UNIX.


50. What signal is used to suspend a process temporarily in UNIX?

a) SIGSTOP

b) SIGTSTP

c) SIGCONT

d) SIGINT

Answer: a) SIGSTOP

Explanation: The SIGSTOP signal is used to suspend a process temporarily in UNIX.

Related Articles

Linux MCQ

Welcome to Linux Multiple Choice Questions (MCQ) Section Embark on a journey through the world of...