Which Linux command is used to display the current environment variables? MCQ with Answer and Explanation

Which Linux command is used to display the current environment variables?
A. All of the above
B. env
C. printenv
D. set
Answer: Option A
Solution (By JKSSB Mock Tests)
env, printenv, and set all display environment variables; set also shows shell variables.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
What does the 'GUI' acronym stand for in computer interface terminology?
A. Graphical Utility Interface
B. Global User Interconnect
C. Graphical User Interface
D. General User Integration

Correct Answer: Option C


Explanation:
GUI stands for Graphical User Interface. It allows users to interact with electronic devices through visual icons and auditory indicators.

This question belongs to: Computer Operating Systems
Question #2
What is the core purpose of a 'Microkernel' design pattern?
A. To run systems without any random access memory.
B. To handle only mobile device microchips.
C. To maximize execution performance by putting all drivers into kernel space.
D. To keep the kernel space highly minimal, moving non-essential services like file handlers into isolated user space processes.

Correct Answer: Option D


Explanation:
Microkernels maximize system reliability and safety by offloading complex operations like networking and file system layers to user-level tasks.

This question belongs to: Computer Operating Systems
Question #3
In Linux, the 'nice' command is used to:
A. Change a process's nice value
B. Set the priority of a process (niceness value)
C. Run a command with a modified scheduling priority
D. All of the above

Correct Answer: Option D


Explanation:
nice sets the initial priority; renice changes priority of running processes; all affect scheduling.

This question belongs to: Computer Operating Systems