Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 102-500 Exam - Topic 5 Question 127 Discussion

Posted by Matthew on Oct 22, 2026 at 01:32 AM

Which command allows you to make a shell variable visible to subshells?

Suggested Answer: B

The command that allows you to make a shell variable visible to subshells isexport VARIABLE. This command turns the variable into a global or environment variable, which means it can be accessed by any child process or subshell that inherits the environment of the parent shell. The syntax of the export command does not require a dollar sign ($) before the variable name, unlike when referencing the value of the variable. The other commands are either invalid or do not affect the visibility of the variable to subshells. Thesetcommand can be used to assign values to variables, but it does not export them. Theenvcommand can be used to run a command in a modified environment, but it does not change the environment of the current shell.Reference:

[LPI Linux Essentials - Topic 105: Shells, Scripting and Data Management]

[LPI Linux Professional - Exam 102 Objectives - Topic 105: Shells and Shell Scripting]

What is a Subshell? - Linux Bash Shell Scripting Tutorial Wiki - nixCraft

What is Subshell in Linux? [Explained]


Get Premium 102-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
0 comments · newest first

Currently there are no comments in this discussion, be the first to comment!

0/2000 characters

Save Cancel