300-170 · Question #57
At the bash prompt, you run the bash$ source environment-setup-x86_64-wrs-linux command. Which purpose of running this command is true?
The correct answer is D. to add SDK-specific paths to the shell environment during environment initialization. Running the source environment-setup-x86_64-wrs-linux command at the bash prompt serves to initialize the shell environment by adding SDK-specific paths and other necessary variables, making development tools and libraries accessible for software development on that system.
Question
At the bash prompt, you run the bash$ source environment-setup-x86_64-wrs-linux command. Which purpose of running this command is true?
Options
- Ato set up the source for the plugins added to the shell environment
- Bto move the build application to the target switch
- Cto prepare the environment for the SDK installation
- Dto add SDK-specific paths to the shell environment during environment initialization
How the community answered
(33 responses)- A6% (2)
- B3% (1)
- C3% (1)
- D88% (29)
Why each option
Running the source environment-setup-x86_64-wrs-linux command at the bash prompt serves to initialize the shell environment by adding SDK-specific paths and other necessary variables, making development tools and libraries accessible for software development on that system.
While it sets up some environment variables, its primary purpose is not specifically "plugins" but broader SDK-related paths and settings.
This command prepares the build environment for development, not for moving built applications to a target switch, which is a deployment step.
This command prepares the environment for using an SDK, or for building with it, rather than preparing for the SDK's installation itself.
The source command is used to execute a script in the current shell environment, and typically, scripts named environment-setup-*-linux are designed to configure development environments by adding necessary SDK-specific paths (like PATH, LD_LIBRARY_PATH) and setting other environment variables for cross-compilation or development tools.
Concept tested: Linux shell environment setup for SDK
Topics
Community Discussion
No community discussion yet for this question.