Which Linux command is used to find files that match a certain pattern? MCQ with Answer and Explanation

Which Linux command is used to find files that match a certain pattern?
A. locate
B. find
C. grep
D. which
Answer: Option B
Solution (By JKSSB Mock Tests)
find searches for files in a directory hierarchy based on name, type, size, etc.; locate uses a database for faster search.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which Linux command is used to stop a running service (e.g., Apache)?
A. service stop
B. kill -9 PID
C. systemctl stop service
D. pkill service

Correct Answer: Option C


Explanation:
On systemd-based Linux, systemctl stop is used to stop services; older sysvinit used service command.

This question belongs to: Computer Operating Systems
Question #2
In operating systems, what is the 'Working Set' of a process?
A. The set of memory pages frequently referenced by the process during its current execution phase.
B. The structural priority tier assigned by the CPU scheduler.
C. The list of peripheral device drivers used by the application.
D. The entire collection of data files ever opened by the process.

Correct Answer: Option A


Explanation:
The working set represents the specific collection of virtual memory pages that a process actively utilizes during a given time slice.

This question belongs to: Computer Operating Systems
Question #3
Which scheduling algorithm uses a fixed time slice called a 'quantum' to cycle through all ready processes in a circular fashion?
A. Non-preemptive Priority
B. First-In, First-Out (FIFO)
C. Round Robin (RR)
D. Shortest Remaining Time First (SRTF)

Correct Answer: Option C


Explanation:
Round Robin (RR) is a preemptive scheduling algorithm that assigns each process a small fixed time quantum sequentially in a cyclic loop.

This question belongs to: Computer Operating Systems