Which Linux command is used to display the current user's identity? MCQ with Answer and Explanation

Which Linux command is used to display the current user's identity?
A. users
B. who
C. id
D. whoami
Answer: Option D
Solution (By JKSSB Mock Tests)
whoami prints the effective username; id shows user and group IDs.

Discuss this Question (0)

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

Practice More Operating Systems Questions

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

Correct Answer: Option D


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 #2
Which file allocation method stores blocks of a file in an ordered sequence linked together via pointers, eliminating external fragmentation but making random access slow?
A. Linked Allocation
B. Direct Directory Mapping
C. Indexed Allocation
D. Contiguous Allocation

Correct Answer: Option A


Explanation:
Linked allocation chains blocks together using pointers, allowing dynamic size expansions but requiring linear scanning to read a specific internal offset.

This question belongs to: Computer Operating Systems
Question #3
Which Linux terminal utility command is explicitly used to check network connectivity to a remote host by sending ICMP Echo Request packets?
A. ssh
B. ping
C. netstat
D. traceroute

Correct Answer: Option B


Explanation:
The 'ping' utility verifies network reachability by dispatching ICMP echo packets and measuring return times from target network interfaces.

This question belongs to: Computer Operating Systems