In Linux, the 'export' command is used to: MCQ with Answer and Explanation

In Linux, the 'export' command is used to:
A. Make a variable global
B. Set environment variables that are passed to child processes
C. All of the above
D. Display environment variables
Answer: Option C
Solution (By JKSSB Mock Tests)
export makes shell variables available to subprocesses; without options, it lists exported variables.

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 system's current runlevel?
A. runlevel
B. All of the above
C. who -r
D. systemctl get-default

Correct Answer: Option B


Explanation:
runlevel and who -r show the current and previous runlevel; systemctl get-default shows default target.

This question belongs to: Computer Operating Systems
Question #2
In Windows, the 'Diskpart' command can be scripted using:
A. Batch files
B. All of the above
C. PowerShell
D. A text file with commands and 'diskpart /s script.txt'

Correct Answer: Option B


Explanation:
diskpart supports scripts via /s, and can be used within PowerShell or batch files for automation.

This question belongs to: Computer Operating Systems
Question #3
What is the name of the software layer in Android that provides standard interfaces to expose device hardware capabilities to the higher-level Java API framework?
A. Android Runtime (ART)
B. Native C/C++ Libraries
C. Linux Kernel
D. Hardware Abstraction Layer (HAL)

Correct Answer: Option D


Explanation:
The Hardware Abstraction Layer (HAL) defines a standard interface for hardware vendors to implement, enabling higher-level Android framework APIs to interact with hardware.

This question belongs to: Computer Operating Systems