UNIX MCQs – Process Monitoring (Part – 3)

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 and their resource usage sorted by process status in UNIX?

a) ps -S

b) ps -stat

c) ps -status

d) ps -st

Answer: b) ps -stat

Explanation: The ps command with the -stat option is used to display information about system processes and their resource usage sorted by process status in UNIX.


2. What signal is used to send a “terminate” signal to a process in UNIX?

a) SIGSTOP

b) SIGTERM

c) SIGKILL

d) SIGINT

Answer: b) SIGTERM

Explanation: The SIGTERM signal is used to send a “terminate” signal to a process in UNIX.


3. Which command is used to display information about system processes and their resource usage sorted by command name in UNIX?

a) ps -cmd

b) ps -args

c) ps -c

d) ps -comm

Answer: d) ps -comm

Explanation: The ps command with the -comm option is used to display information about system processes and their resource usage sorted by command name in UNIX.


4. What is the purpose of the vmstat command in UNIX?

a) Display virtual memory statistics

b) Display disk space statistics

c) Display network statistics

d) Display process statistics

Answer: a) Display virtual memory statistics

Explanation: The vmstat command is used to display virtual memory statistics in UNIX.


5. Which signal is used to send a “kill” signal to a process in UNIX?

a) SIGKILL

b) SIGTERM

c) SIGINT

d) SIGSTOP

Answer: a) SIGKILL

Explanation: The SIGKILL signal is used to send a “kill” signal to a process in UNIX.


6. What command is used to display information about system processes and their resource usage sorted by time in UNIX?

a) ps -T

b) ps -time

c) ps -start-time

d) ps -start

Answer: c) ps -start-time

Explanation: The ps command with the -start-time option is used to display information about system processes and their resource usage sorted by time in UNIX.


7. Which signal is used to send a “stop” signal to a process in UNIX?

a) SIGSTOP

b) SIGTSTP

c) SIGCONT

d) SIGINT

Answer: a) SIGSTOP

Explanation: The SIGSTOP signal is used to send a “stop” signal to a process in UNIX.


8. What command is used to display information about system processes and their resource usage sorted by memory in UNIX?

a) ps -m

b) ps -mem

c) ps -memory

d) ps -rss

Answer: b) ps -mem

Explanation: The ps command with the -mem option is used to display information about system processes and their resource usage sorted by memory in UNIX.


9. Which signal is used to send a “continue” signal to a process in UNIX?

a) SIGCONT

b) SIGSTOP

c) SIGTSTP

d) SIGINT

Answer: a) SIGCONT

Explanation: The SIGCONT signal is used to send a “continue” signal to a process in UNIX.


10. What is the purpose of the sar command in UNIX?

a) Display system information

b) Display swap space information

c) Display CPU utilization information

d) Display process information

Answer: c) Display CPU utilization information

Explanation: The sar command is used to display CPU utilization information in UNIX.


11. Which command is used to display information about system processes and their resource usage sorted by user in UNIX?

a) ps -U

b) ps -user

c) ps -u

d) ps -username

Answer: c) ps -u

Explanation: The ps command with the -u option is used to display information about system processes and their resource usage sorted by user in UNIX.


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

a) Display CPU utilization statistics

b) Display disk I/O statistics

c) Display memory utilization statistics

d) Display network statistics

Answer: b) Display disk I/O statistics

Explanation: The iostat command is used to display disk I/O statistics in UNIX.


13. Which signal is used to send a “hangup” signal to a process and its children in UNIX?

a) SIGHUP

b) SIGTERM

c) SIGKILL

d) SIGINT

Answer: a) SIGHUP

Explanation: The SIGHUP signal is used to send a “hangup” signal to a process and its children in UNIX.


14. What command is used to display information about system processes and their resource usage sorted by process ID in UNIX?

a) ps -P

b) ps -p

c) ps -pid

d) ps -process

Answer: b) ps -p

Explanation: The ps command with the -p option is used to display information about system processes and their resource usage sorted by process ID in UNIX.


15. Which signal is used to terminate a process and its children gracefully and then immediately in UNIX?

a) SIGTERM

b) SIGKILL

c) SIGSTOP

d) SIGINT

Answer: b) SIGKILL

Explanation: The SIGKILL signal is used to terminate a process and its children gracefully and then immediately in UNIX.


16. What command is used to display information about system processes and their resource usage sorted by thread in UNIX?

a) ps -thread

b) ps -T

c) ps -th

d) ps -threads

Answer: b) ps -T

Explanation: The ps command with the -T option is used to display information about system processes and their resource usage sorted by thread in UNIX.


17. Which command is used to display information about system processes and their resource usage sorted by start time in UNIX?

a) ps -s

b) ps -S

c) ps -starttime

d) ps -start

Answer: c) ps -starttime

Explanation: The ps command with the -starttime option is used to display information about system processes and their resource usage sorted by start time in UNIX.


18. 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.


19. Which command is used to display information about system processes and their resource usage sorted by virtual memory in UNIX?

a) ps -v

b) ps -V

c) ps -vsz

d) ps -virtual

Answer: c) ps -vsz

Explanation: The ps command with the -vsz option is used to display information about system processes and their resource usage sorted by virtual memory in UNIX.


20. What is the purpose of the time command in UNIX?

a) Display system time

b) Measure command execution time

c) Set system time

d) Display process time

Answer: b) Measure command execution time

Explanation: The time command is used to measure the execution time of commands in UNIX.


21. Which signal is used to suspend a process temporarily and allow it to be resumed later in UNIX?

a) SIGSTOP

b) SIGTSTP

c) SIGCONT

d) SIGINT

Answer: b) SIGTSTP

Explanation: The SIGTSTP signal is used to suspend a process temporarily and allow it to be resumed later in UNIX.


22. What command is used to display information about system processes and their resource usage sorted by CPU utilization in UNIX?

a) ps -c

b) ps -C

c) ps -cpu

d) ps -%CPU

Answer: d) ps -%CPU

Explanation: The ps command with the -%CPU option is used to display information about system processes and their resource usage sorted by CPU utilization in UNIX.


23. Which command is used to display information about system processes and their resource usage sorted by user in a detailed format in UNIX?

a) ps -d

b) ps -U

c) ps -u

d) ps -user-detail

Answer: b) ps -U

Explanation: The ps command with the -U option is used to display information about system processes and their resource usage sorted by user in a detailed format in UNIX.


24. What is the purpose of the sar command in UNIX?

a) Display system information

b) Display swap space information

c) Display CPU utilization information

d) Display process information

Answer: c) Display CPU utilization information

Explanation: The sar command is used to display CPU utilization information in UNIX.


25. Which command is used to display information about system processes and their resource usage sorted by resident memory in UNIX?

a) ps -m

b) ps -rss

c) ps -mem

d) ps -RES

Answer: b) ps -rss

Explanation: The ps command with the -rss option is used to display information about system processes and their resource usage sorted by resident memory in UNIX.


26. Which command is used to display a dynamic real-time view of the running processes in UNIX?

a) pstat

b) pstree

c) top

d) psview

Answer: c) top

Explanation: The top command provides a dynamic real-time view of the running processes in UNIX.


27. What signal is used to send a “terminate” signal to a process and its children in UNIX?

a) SIGSTOP

b) SIGTERM

c) SIGINT

d) SIGKILL

Answer: b) SIGTERM

Explanation: The SIGTERM signal is used to send a “terminate” signal to a process and its children in UNIX.


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

a) procdetails

b) ps -d

c) pidinfo

d) pinfo

Answer: d) pinfo

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


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

a) Renaming processes

b) Adjusting process priority

c) Resuming suspended processes

d) Terminating processes by name

Answer: b) Adjusting process priority

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


30. Which command is used to display information about system processes and their resource usage sorted by process group in UNIX?

a) ps -g

b) ps -group

c) ps -process-group

d) ps -pgid

Answer: a) ps -g

Explanation: The ps command with the -g option is used to display information about system processes and their resource usage sorted by process group in UNIX.


31. What signal is used to send a “stop” signal to a process and its children in UNIX?

a) SIGSTOP

b) SIGTSTP

c) SIGCONT

d) SIGINT

Answer: a) SIGSTOP

Explanation: The SIGSTOP signal is used to send a “stop” signal to a process and its children in UNIX.


32. Which command is used to display the current system load average in UNIX?

a) load

b) sysload

c) uptime

d) top

Answer: c) uptime

Explanation: The uptime command displays the current system load average among other information in UNIX.


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

a) Display process status

b) Display CPU statistics

c) Display memory statistics

d) Display process statistics

Answer: d) Display process statistics

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


34. Which command is used to display information about system processes and their resource usage sorted by time in UNIX?

a) ps -T

b) ps -t

c) ps -time

d) ps -start-time

Answer: c) ps -time

Explanation: The ps command with the -time option is used to display information about system processes and their resource usage sorted by time in UNIX.


35. What is the purpose of the vmstat command in UNIX?

a) Display system memory statistics

b) Display virtual memory statistics

c) Display CPU usage statistics

d) Display disk I/O statistics

Answer: b) Display virtual memory statistics

Explanation: The vmstat command displays virtual memory statistics in UNIX.


36. Which signal is used to send a “continue” signal to a process and its children in UNIX?

a) SIGCONT

b) SIGSTOP

c) SIGTSTP

d) SIGINT

Answer: a) SIGCONT

Explanation: The SIGCONT signal is used to send a “continue” signal to a process and its children in UNIX.


37. What is the purpose of the ls command in UNIX?

a) List system processes

b) List directory contents

c) List active users

d) List system services

Answer: b) List directory contents

Explanation: The ls command is used to list directory contents in UNIX.


38. Which command is used to display information about system processes and their resource usage sorted by process ID in UNIX?

a) ps -P

b) ps -pid

c) ps -p

d) ps -process

Answer: c) ps -p

Explanation: The ps command with the -p option is used to display information about system processes and their resource usage sorted by process ID in UNIX.


39. What is the purpose of the sar command in UNIX?

a) Display system information

b) Display swap space information

c) Display CPU utilization information

d) Display process information

Answer: c) Display CPU utilization information

Explanation: The sar command is used to display CPU utilization information in UNIX.


40. Which command is used to display information about system processes and their resource usage sorted by resident memory in UNIX?

a) ps -m

b) ps -rss

c) ps -mem

d) ps -RES

Answer: b) ps -rss

Explanation: The ps command with the -rss option is used to display information about system processes and their resource usage sorted by resident memory in UNIX.


41. What command is used to display information about system processes and their resource usage sorted by thread in UNIX?

a) ps -T

b) ps -threads

c) ps -thread

d) ps -th

Answer: a) ps -T

Explanation: The ps command with the -T option is used to display information about system processes and their resource usage sorted by thread in UNIX.


42. Which command is used to display information about system processes and their resource usage sorted by start time in UNIX?

a) ps -S

b) ps -s

c) ps -starttime

d) ps -start

Answer: c) ps -starttime

Explanation: The ps command with the -starttime option is used to display information about system processes and their resource usage sorted by start time in UNIX.


43. 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.


44. Which command is used to display information about system processes and their resource usage sorted by virtual memory in UNIX?

a) ps -v

b) ps -V

c) ps -vsz

d) ps -virtual

Answer: c) ps -vsz

Explanation: The ps command with the -vsz option is used to display information about system processes and their resource usage sorted by virtual memory in UNIX.


45. What is the purpose of the time command in UNIX?

a) Display system time

b) Measure command execution time

c) Set system time

d) Display process time

Answer: b) Measure command execution time

Explanation: The time command is used to measure the execution time of commands in UNIX.


46. Which signal is used to suspend a process temporarily and allow it to be resumed later in UNIX?

a) SIGSTOP

b) SIGTSTP

c) SIGCONT

d) SIGINT

Answer: b) SIGTSTP

Explanation: The SIGTSTP signal is used to suspend a process temporarily and allow it to be resumed later in UNIX.


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

a) Display process status

b) Display CPU statistics

c) Display memory statistics

d) Display process statistics

Answer: d) Display process statistics

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


48. Which command is used to display information about system processes and their resource usage sorted by time in UNIX?

a) ps -T

b) ps -t

c) ps -time

d) ps -start-time

Answer: c) ps -time

Explanation: The ps command with the -time option is used to display information about system processes and their resource usage sorted by time in UNIX.


49. What is the purpose of the vmstat command in UNIX?

a) Display system memory statistics

b) Display virtual memory statistics

c) Display CPU usage statistics

d) Display disk I/O statistics

Answer: b) Display virtual memory statistics

Explanation: The vmstat command displays virtual memory statistics in UNIX.


50. Which signal is used to send a “continue” signal to a process and its children in UNIX?

a) SIGCONT

b) SIGSTOP

c) SIGTSTP

d) SIGINT

Answer: a) SIGCONT

Explanation: The SIGCONT signal is used to send a “continue” signal to a process and its children in UNIX.

Related Articles

Linux MCQ

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