Which Linux terminal command displays information about the user account that is currently logged into the terminal session? MCQ with Answer and Explanation

Which Linux terminal command displays information about the user account that is currently logged into the terminal session?
A. uname
B. id -g
C. whoami
D. pwd
Answer: Option C
Solution (By JKSSB Mock Tests)
The 'whoami' command outputs the exact username of the current user account operating the terminal shell session.

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 display the last reboot time?
A. who -b
B. last reboot
C. All of the above
D. uptime -s

Correct Answer: Option C


Explanation:
last reboot shows reboot history; uptime -s shows system start time; who -b shows boot time.

This question belongs to: Computer Operating Systems
Question #2
Which of the following is an example of a distributed operating system?
A. Amoeba
B. Windows Server
C. Linux
D. Android

Correct Answer: Option A


Explanation:
Amoeba is a distributed OS that manages a collection of computers as a single system; others are not distributed by default.

This question belongs to: Computer Operating Systems
Question #3
Which of the following processes is the first user-space process started by the Linux kernel during system initialization, typically having a Process ID (PID) of 1?
A. cron
B. init (or systemd)
C. bash
D. kthreadd

Correct Answer: Option B


Explanation:
The 'init' process (modern distributions use systemd) is the very first process launched by the Linux kernel during boot, and it receives PID 1.

This question belongs to: Computer Operating Systems