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

In Linux, the 'export' command is used to:
A. All of the above
B. Display environment variables
C. Set environment variables that are passed to child processes
D. Make a variable global
Answer: Option A
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
What mechanism does an OS use to instantly notify the CPU that an event requiring immediate attention has occurred?
A. Thread
B. Interrupt
C. System Call
D. Spooling

Correct Answer: Option B


Explanation:
An interrupt is a hardware or software signal sent to the CPU, causing it to temporarily suspend current tasks to execute an Interrupt Service Routine (ISR).

This question belongs to: Computer Operating Systems
Question #2
In Linux, what does the command 'ls -l' display?
A. Detailed file information including permissions, owner, size, and timestamp
B. Files sorted by size
C. Hidden files as well
D. Only file names

Correct Answer: Option A


Explanation:
ls -l (long listing) displays permissions, number of links, owner, group, size, date, and filename.

This question belongs to: Computer Operating Systems
Question #3
What is the term for the technique where a process is divided into smaller parts and executed in parallel on multiple processors?
A. Time-sharing
B. Parallel processing
C. Batch processing
D. Multithreading

Correct Answer: Option B


Explanation:
Parallel processing uses multiple processors to simultaneously execute multiple parts of a program, improving performance.

This question belongs to: Computer Operating Systems