GIAC
GSNA · Question #142
John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux- based network. John is working as a root user on the Linux operating system. He executes the following…
The correct answer is B. root, 0. According to the scenario, John is a root user. Hence, the value of the environmental variables $USER and $UID will be root and 0, respectively.
Linux/Unix System Auditing
Question
John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux- based network. John is working as a root user on the Linux operating system. He executes the following command in the terminal: echo $USER, $UID Which of the following will be displayed as the correct output of the above command?
Options
- AJohn, 0
- Broot, 0
- Croot, 500
- DJohn, 502
How the community answered
(47 responses)- A13% (6)
- B81% (38)
- C2% (1)
- D4% (2)
Explanation
According to the scenario, John is a root user. Hence, the value of the environmental variables $USER and $UID will be root and 0, respectively.
Topics
#Linux root user#UID#environment variables#shell output
Community Discussion
No community discussion yet for this question.