Which Linux command is used to display the full pathname of the current working directory? MCQ with Answer and Explanation

Which Linux command is used to display the full pathname of the current working directory?
A. ls
B. pwd
C. cd
D. whoami
Answer: Option B
Solution (By JKSSB Mock Tests)
The 'pwd' command stands for 'print working directory', which outputs the exact directory path that the user is currently interacting with.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
In operating systems, what is the primary function of the 'Medium-Term Scheduler'?
A. To handle real-time peripheral device drivers.
B. To swap processes out of main memory to secondary storage (and vice versa) to control the degree of multiprogramming.
C. To assign processes directly to an available CPU core.
D. To control the initial BIOS POST test routines.

Correct Answer: Option B


Explanation:
The medium-term scheduler removes processes from main memory temporarily (swapping out) to reduce the degree of multiprogramming and manage memory constraints.

This question belongs to: Computer Operating Systems
Question #2
What is the core purpose of a device driver in an operating system?
A. To act as a translator enabling communication between the operating system and specific hardware peripherals.
B. To scan user applications for viruses and security issues.
C. To provide internet connection capabilities to the web browser software.
D. To optimize the layout of database structures in permanent storage.

Correct Answer: Option A


Explanation:
Device drivers are specialized programs that enable the Operating System to communicate effectively with external hardware components and peripherals.

This question belongs to: Computer Operating Systems
Question #3
Which Android component is responsible for managing the user interface and interactions?
A. Service
B. Activity
C. Content Provider
D. Broadcast Receiver

Correct Answer: Option B


Explanation:
Activities represent screens with UI; they handle user interactions and lifecycle events.

This question belongs to: Computer Operating Systems