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

Which Linux command is used to display the current user's group memberships?
A. who
B. Both A and B
C. id -Gn
D. groups
Answer: Option B
Solution (By JKSSB Mock Tests)
groups shows all groups for the current user; id -Gn also lists group names.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
In Android, which permission category protects sensitive information such as contacts and location?
A. Dangerous permissions
B. System permissions
C. Signature permissions
D. Normal permissions

Correct Answer: Option A


Explanation:
Dangerous permissions are those that could affect user privacy or device operation, requiring user approval at runtime.

This question belongs to: Computer Operating Systems
Question #2
What is the default command prompt interpreter application executable file in modern Windows?
A. terminal.sys
B. cmd.exe
C. bash.exe
D. command.com

Correct Answer: Option B


Explanation:
The default command prompt interpreter application file for modern Windows systems is 'cmd.exe'.

This question belongs to: Computer Operating Systems
Question #3
In Windows, the 'Event Viewer' is used to:
A. Configure system startup
B. Edit system registry
C. Manage network connections
D. View system, application, and security logs

Correct Answer: Option D


Explanation:
Event Viewer displays logs of system events, errors, warnings, and informational messages for troubleshooting.

This question belongs to: Computer Operating Systems