Which Linux command is used to kill a process by its name? MCQ with Answer and Explanation

Which Linux command is used to kill a process by its name?
A. killall
B. pkill
C. term
D. kill
Answer: Option B
Solution (By JKSSB Mock Tests)
pkill kills processes based on name or other attributes; killall is similar but may behave differently; kill uses PID.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
What is the function of the 'defragmentation' utility in Windows?
A. To reorganize files on a disk to improve access speed
B. To check disk errors
C. To clean up unnecessary files
D. To compress files

Correct Answer: Option A


Explanation:
Defragmentation consolidates fragmented files, reducing seek time and improving performance on HDDs; SSDs do not require it.

This question belongs to: Computer Operating Systems
Question #2
Which of the following options represents a core feature of asymmetric multiprocessing (AMP)?
A. A master processor schedules tasks and distributes distinct workloads to specific slave processors.
B. Memory is physically isolated and cannot be read by any processor core.
C. All processors have completely equal priority and share all resources.
D. No two processors can be active inside the motherboard enclosure at the same time.

Correct Answer: Option A


Explanation:
In Asymmetric Multiprocessing (AMP), there is a master-slave structure where a single master controller processor manages system resources and schedules tasks for subordinate processors.

This question belongs to: Computer Operating Systems
Question #3
Which of the following is a file system supported by both Windows and Linux for large drives?
A. exFAT
B. All of the above
C. NTFS (with limited Linux write support)
D. FAT32

Correct Answer: Option B


Explanation:
All three are supported across Windows and Linux, though NTFS may require additional drivers for full write support in some distros.

This question belongs to: Computer Operating Systems